-
-
Notifications
You must be signed in to change notification settings - Fork 685
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
Toga GTK breaks if status icons are used in Flatpak environemnt #3001
Comments
Thanks for the report. Agreed that if this is the current state, it should be documented; the bigger question is whether it is possible to be fixed at all. You could argue (badly) that it is documented in that Toga's docs say that XApps is a required library... but the connection between that a Flatpak deployment definitely won't be clear, so it should be made explicit. My guess is that the fix here is going to be adding |
FWIW, a "runtime extension" seems like a reasonable approach as well. It is interesting, though, that this seeming doesn't already exist... Additionally, Flatpak seems to have some words about status icons. They also explicitly mention |
It turns out - this option does exist - so no new ticket is needed. Adding something like:
will add a libxapps build and install into the project before the app code is installed. (That code sample likely needs some tweaking to the actual build instructions)
IIRC, XApps status icons meet the XEmbed standard; the rest of that section matches what I'd expect of a Linux Desktop - "The concept exists, but there's no guarantee they'll actually be visible, so don't rely on them for core functionality" - which is what the Toga docs already say. |
Yeah, the entire concept of status notifiers on Linux desktop is unfortunately complex, and has an ambiguous future, especially if trying to consider a cross-DE solution. The current Toga GTK implementation for status icons doesn't work on KDE, even though KDE has a status tray. It's unfortunate XApps doesn't try to use StatusNotifierItem (SNI). I wonder if Toga GTK could detect the desktop environment and use SNI directly when on KDE? I'd like to know which DEs support SNI, but at least with the quick searching I've done just now, I can't tell for sure which ones support it. From what I understand, it isn't easy to directly translate concepts between XApps, XEmbed, and SNI 😞 Fully agreed that this situation is pretty much par for the course, and anything that happens to "just work" everywhere is more of a bonus when it comes to desktop Linux. Toga docs make that clear, for sure 👍 |
Yeah, I had tried something like this....but I seem to end up in a potential dependency hell.
|
I don't have any objection to having a parallel implementation of status icons to support a different underlying protocol - as long as someone else does the leg work to work out how it works and implement it :-) |
Describe the bug
Toga GTK's status icon implementation relies on the
Xapps
API, which is not available in the GNOME Flatpak runtime.Steps to reproduce
statusiconapp
example on Linux, adding a new entry for a Flatpak target topyproject.toml
Expected behavior
Documentation should be updated to indicate that the Toga GTK implementation of status icon will crash apps running in Flatpaks.
Screenshots
No response
Environment
Logs
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: