DeedleFake / trayscale

An unofficial GUI wrapper around the Tailscale CLI client.
MIT License
508 stars 18 forks source link

Add option to start minimized to system tray #70

Open ostrich opened 1 year ago

ostrich commented 1 year ago

First, thanks for your great utility.

Second, I have it set to autostart with my desktop environment. An option to start minimized to the system tray would be great.

DeedleFake commented 1 year ago

There is actually a command-line argument to do just that, --hide-window. I could probably also add an option to start hidden to the settings. I've thought about it before but it seemed kind of redundant.

ostrich commented 1 year ago

Nice, thanks. I see it's even in trayscale --help. But yeah, a settings option would help people like me who neglect to RTFM 😅

DeedleFake commented 1 year ago

One potential issue with a preference is that if someone turns that on, presumably accidentally, in an environment without a system tray, such as vanilla GNOME, getting a window will require opening the app twice, which would be weird. Probably not a big deal, but it could lead to some confusion.

I'll look into it and see what I can do.

jaymgs commented 1 week ago

Any idea how to get the Flatpak version to start minimized?

DeedleFake commented 6 days ago

You can use the same command-line option referenced above. That's how I use it locally. If your desktop environment (GNOME does this.) uses $HOME/.config/autostart for stuff that starts at login, just modify the dev.deedles.Trayscale.desktop file in there to add the flag to the Exec= line. That way the autostart version will start minimized but manually starting it won't.