sigmaSd / Stimulator

Keep your computer awake
https://flathub.org/apps/io.github.sigmasd.stimulator
MIT License
9 stars 9 forks source link

Add backgrounding support + tray support #24

Closed sigmaSd closed 5 months ago

meybonomme commented 6 months ago

I know Gnome is not support this function natively, but I think running in background support does not make sense without AppIndicator (system tray) support. If app runs in background without AppIndicator, there is very big chance that user will not notice that and computer will be active infinitely.

I did a little research and it turns out that AppIndicator have supported on most common Linux desktops, including KDE, Mate, XFCE, LXDE and Budgie: https://github.com/AyatanaIndicators/libayatana-appindicator

For Gnome AppIndicator extension is managed by Ubuntu community and this extension is bundled part of Ubuntu: https://github.com/ubuntu/gnome-shell-extension-appindicator Because newest Ubuntu release contains newest Gnome DE, this extension is up to date and the possibility that the extension is not compatible with the latest version of Gnome is very small.

AppIndicator libraries are GTK3 but Stimulator is GTK4, I don't know if it causes big problems. Probably the Stimulator flatpak must also contain a GTK3 library?

sigmaSd commented 5 months ago

fixed by https://github.com/sigmaSd/Stimulator/commit/e4e60961af7b7a074112b7f3200d4213ea0572a8