Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion linux-rust/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ struct Args {
help = "Disable system tray, useful if your environment doesn't support AppIndicator or StatusNotifier"
)]
no_tray: bool,
#[arg(
long,
help = "Hide the tray icon but keep the GUI running, so the window can \
still be opened. Unlike --no-tray, which disables the GUI \
entirely and leaves nothing able to open a window."
)]
no_tray_icon: bool,
#[arg(long, help = "Start the application minimized to tray")]
start_minimized: bool,
#[arg(
Expand Down Expand Up @@ -126,7 +133,7 @@ async fn async_main(
}
}

let tray_handle = if args.no_tray {
let tray_handle = if args.no_tray || args.no_tray_icon {
None
} else {
let tray = MyTray {
Expand Down