I would like to be able to automatically run toggldesktop when my computer boots, so have it listed with other applications in my desktop configuration to autostart. The only problem is that it opens its main window when it starts.
There should be an option or command line argument that you can set so that when toggldesktop runs it doesn't open a window automatically but just shows the tray icon.
I would assume user would like to start using Toggl once it's started. This is why the app window is shown. I don't see a need to hide the window on app start.
@IndrekV why would you assume that? Many applications offer a system tray icon (as does toggldesktop), to provide quick access and keyboard shortcuts. (For example from apps I use daily and can start automatically in the tray: nextcloud client, a clipboard manager, bluetooth settings, network manager applet, usb drive mounter, etc.) My current workflow with toggldesktop is:
If toggldesktop has a command line switch or setting to start only in the tray without opening a window, I can cut out steps 1 and 2, and have it start automatically when I log in without the window opening in my face.
Thank you for elaborating. I will look into the possibility of adding a command line switch. What platform are you using?
Linux. Currently installed with https://aur.archlinux.org/packages/toggldesktop/ (archlinux package built from toggldesktop sources).
Whilst we're on the subject, would it be possible to offer to option of not having it in the dock? Only in the system tray? (MacOs)
@StanLindsey There is actually a setting called Show dock icon in the macos app preferences.

I've added "start in background" command line arguments to the latest beta v.7.4.19
use -b, --background command line arguments to start with the window hidden.
Example: ./TogglDesktop.sh -b
@IndrekV it isn't working for me...
This is with i3 desktop, toggldesktop v7.4.20
Thanks @indrekV
I've reworked the background start issue. It is available in the latest beta. v7.4.24
@IndrekV thanks, works perfectly now! 馃憤
Most helpful comment
I've added "start in background" command line arguments to the latest beta v.7.4.19
use
-b, --backgroundcommand line arguments to start with the window hidden.Example:
./TogglDesktop.sh -b