element icon indicating copy to clipboard operation
element copied to clipboard

Start hidden in systray

Open xcasxcursex opened this issue 3 years ago • 2 comments

Related to https://github.com/kushview/Element/issues/261

It would be awesome to have a method to start the application minimised to the systray. A command-line argument would be fantastic as it would allow the app to start normally, or hidden, rather than having a single fixed behaviour in Element's preferences - and of course it means no changes required to the preferences.

I'm using Element in conjunction with Voicemeeter to process inputs (de-noising, gating, voice channel stuff, etc), so both apps start automatically on boot and I never touch them again. Presently, on each boot, I have to expand the systray, right-click the icon, and select show/hide, to minimise it to the tray and ready the PC for use - not a major problem, but it would be nice to not have to do that.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

xcasxcursex avatar Apr 05 '21 09:04 xcasxcursex

A workaround for others with a similar use-case:

Setup Element as desired. Save the settings to file as usual. Set Element to load the previous session on startup. Set Element to NOT prompt to save on exit (don't forget you need to save manually now!) Rightclick systray icon and select Hide. Rightclick systray icon and click Exit.

Now, when Element starts, it will load the previous session, configured as you wanted it, and it will remember that it was hidden when it exited. This behaviour will persist through reboots, so now, if you put the Element icon in your startup folder, it will start minimised to the systray.

If you leave the prompt to save on exit set, then Element will un-hide itself to prompt you to save before exiting, and it will remember that it was un-hidden, and this all won't work.

I wonder if it might be possible, to have the prompt to save on exit, pop up without un-hiding the main window. Then, no matter what our settings, Element will just always start in the way it was running before it was closed.

ghost avatar Aug 01 '21 11:08 ghost

Would it be possible for this to include functionality that might optionally hide the app from various system displays of "active apps" (e.g., CMD+Tab menu, Dock, Mission Control, etc.) similar to other in-the-background apps like Alfred, LuLu, and Karabiner? I am running Element in the background 24/7 to run processing on my Aux Out and it would be nice to not see the Element App everywhere when it is only ever running in the background for me, especially since there is an option to include an icon in the system tray.

jpodolski avatar Oct 05 '21 14:10 jpodolski