Skip to content

Added tray autostart#50

Open
le0o0oo wants to merge 5 commits intopiec:masterfrom
le0o0oo:master
Open

Added tray autostart#50
le0o0oo wants to merge 5 commits intopiec:masterfrom
le0o0oo:master

Conversation

@le0o0oo
Copy link

@le0o0oo le0o0oo commented Mar 15, 2026

This PR adds autostart support controlled by the autostart option in the configuration file.

On application startup, the app checks whether this option is enabled. If it is, a .desktop entry is created in ~/.config/autostart (elecwhat.desktop). This entry launches the application with the --hide and --autostart flags so that it starts minimized and remains in the system tray.

Note 1: For this to take effect, the application must be launched at least once while the autostart option is set to true in the configuration. This is because it needs to create the .desktop entry.
Note 2: This has currently only been tested on CachyOS with GNOME 49 and I don't know if it will work on other configurations

@piec
Copy link
Owner

piec commented Mar 16, 2026

Hi, thank you I will take a look at it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants