* feat: add CLI parameters for Linux (--start-hidden, --no-tray, --toggle-transcription, --debug) Add command-line interface using clap for better Linux desktop integration: - --start-hidden: launch without showing the main window - --no-tray: launch without system tray icon (closing window quits app) - --toggle-transcription: toggle recording on/off on a running instance via tauri_plugin_single_instance - --debug: enable debug mode with Trace-level logging (runtime-only) Extract toggle_transcription() from signal_handle.rs into a reusable function shared between SIGUSR2 handler and CLI single-instance callback. Update CLAUDE.md and README.md with CLI documentation including setup instructions for GNOME, KDE Plasma, Sway/i3, and Hyprland. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * add cancel and post processs * cleanup * format * docs --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> Co-authored-by: CJ Pais <cj@cjpais.com>
18 lines
539 B
Rust
18 lines
539 B
Rust
// Prevents additional console window on Windows in release, DO NOT REMOVE!!
|
|
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
|
|
|
|
use clap::Parser;
|
|
use handy_app_lib::CliArgs;
|
|
|
|
fn main() {
|
|
let cli_args = CliArgs::parse();
|
|
|
|
#[cfg(target_os = "linux")]
|
|
{
|
|
// DMABUF renderer causes crashes on various GPU/display server configurations
|
|
// See: https://github.com/tauri-apps/tauri/issues/9394
|
|
std::env::set_var("WEBKIT_DISABLE_DMABUF_RENDERER", "1");
|
|
}
|
|
|
|
handy_app_lib::run(cli_args)
|
|
}
|