-
-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature request]: Tray icon and minimize to tray on Linux #234
Comments
Hi @sorcererlc, This is something I've wanted to do for a long time, adding the |
Just to inform you @sorcererlc that this feature has been implemented and it will be released in the next release. if you don't want to wait for the next release you can download the nighly build here feel free to share some feedbacks if you find something that can be improved. thanks! |
I downloaded and ran the nightly build but there's no tray icon being created. If it helps with anything, I'm using GTK to generate a system tray widget. Another thing I just thought of that would be nice is a configuration option to minimize to tray instead of quitting when closing the main window. This would be a great help for people who don't have window decorations like a title bar and a minimize button. |
mmm... on Ubuntu 24.04, GNOME 26 (X11 and Wayland) and KDE Plasma the tray icon works as in Windows, if this is not the case on your system it means that your system returns false to this method call probably the GTK widget you are using does not notify the OS that the tray is supported with it. can you remember me your OS details please? Are you using GNOME? if you want to try it I have created another build that "skip the check if tray is supported" and act like if it's suppoted. if yes, next step would be to understand why the widget you are using does not notify the OS about the tray support. |
I am running Hyprland on Arch Linux and I am using ags for the system tray widget. The latest build throws an exception when starting
|
what are the programs that you are running with AGS that works well? it's weird that Java isn't able to detect the tray support. |
Electron apps like Slack and Discord work. Also Vivaldi, Steam, OpenRGB and Telegram. |
it seems that can you install xembed-sni-proxy and give it a try? |
There doesn't seem to be an individual package available for Arch anymore and the AUR package is marked as deprecated so I'm reluctant to install it. I am using XWayland to provide some compatibility with X11 software and if that's not working I'm assumimg it won't work at all without Java providing proper Wayland support. |
that package has been merged in plasma so it shouldn't be too bad, you could consider to create an image of your disk if you are worried about "breaking things", install the package and revert back if something broke :) I don't think that it's a JavaFX problem it's just that Java (AWT) uses xembed instead of SNI for the tray icon. |
It has indeed been merged into plasma but that's the problem, there's no individual package available anymore. The AUR package is marked deprecated. Just for laughs I tried installing it anyway and both yay and paru complained that "No AUR package found for xembed-sni-proxy-git". I also tried building it from source but that also failed as I'm missing some X libraries. Edit: I installed snixembed which seems to do the same thing but it fails to launch. |
I haven't answered yet because I'm still trying to find a solution for systems that lacks xembed. Tray icon is managed by AWT and not by JavaFx and AWT is still using xembed. |
No worries, take your time. |
hi @sorcererlc, this build uses the latest possible tray icon system on Linux there is another new feature. if you want to give it a try, you know where to download it, if you prefer to wait for the final release, it's fine :) EDIT: if you want to revert to the latest stable once installed this new beta, you need to manually edit the FireflyLuciferin.yaml and remove this entry: reverting back is not needed if it works well for you. |
if you want to try notifications it's very simple:
it should complain that it lacks a valid ip address. this is just a method to test the notifications :) thank you for the feedback and the continued support sorcererlc, it's much appreciated 👍 |
ok. thank you very much :) |
Could you guys guide me how to get this working in Arch? |
@Nyxis0 While it is possible to install .deb packages on Arch it's generally not recommended because it can cause conflicts with pacman. The recommended method is to clone the source and create a PKGBUILD that can then be installed using pacman. Personally, I installed from the .rpm package. I just extracted it and copied the files to /opt. I also copied the .desktop file to /usr/share/applications so it would get picked up by the the app launcher. |
sorcerlc is obviously more competent than me on the arch side, so listen to him :D I am trying to understand how to publish the app on flatpak and snap but it will take some time. |
I would say that my competency with Arch is mediocre at best. I've only running using Arch for the past two months or so. But I did learn a lot about it and Linux in general during this time, by necessity really, since Arch just left me with a TTY and told me to deal with it :D I haven't messed with PKGBUILD yet but according to the wiki it should be relatively straight forward since you already have the build system in place. If you're using Github Actions or some other CI system you should even be able to provide a -bin release so people don't have to install build dependencies and build from source every time if they only want so use stable releases. I'd be happy to help with testing if you decide to try it. |
agree, opened a feature request here |
Is your feature request related to a problem? Please describe
Not really a problem, more an inconvenience of having the Luciferin window open all the time.
Describe the solution you'd like
I would like to have a tray icon and the ability to hide the main window on Linux like I had on Windows.
Describe alternatives you've considered
No response
The text was updated successfully, but these errors were encountered: