Skip to content
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

AntiMicroX system tray icon not appearing in flatpak package #58

Closed
tawfeqfauzi opened this issue Oct 3, 2020 · 15 comments · Fixed by #62
Closed

AntiMicroX system tray icon not appearing in flatpak package #58

tawfeqfauzi opened this issue Oct 3, 2020 · 15 comments · Fixed by #62
Assignees
Labels
bug Something isn't working packaging Every issue linked with providing and fixing packages for different distributions and systems

Comments

@tawfeqfauzi
Copy link

Describe the bug
Upon opening, the app doesn't display the system tray icon.

Screenshots
03 ⁄ 10 ⁄ 2020 20-58

Version
Running version 3.1.2
Distro is 20.04 LTS Pop! OS 64-bit with Gnome 3.36.3 as my DE

Additional context
On debugging I noticed something, and I'll also attach the full log:
Line 42 Warning: failed to register service "org.kde.StatusNotifierItem-2-1" ((null):0, (null))
debug antimicrox.zip

@pktiuk pktiuk self-assigned this Oct 3, 2020
@pktiuk pktiuk added the bug Something isn't working label Oct 3, 2020
@pktiuk
Copy link
Member

pktiuk commented Oct 3, 2020

Do you use flatpak package?

@gombosg
Copy link
Collaborator

gombosg commented Oct 3, 2020

Thanks for reporting!
This might be the same as #55 .

Try this extension for GNOME: https://extensions.gnome.org/extension/1503/tray-icons
Or this: https://extensions.gnome.org/extension/1031/topicons/

I tried and it works with both, with Flatpak and with native app, too.

If it works for you, I'll add this to the README.
If not, I'll spin up a POP! VM, but I'd appreciate if you could test. 🙂

@pktiuk
Copy link
Member

pktiuk commented Oct 3, 2020

@gombosg
I have already installed POP! OS on VM, I will check, when I will get to know which version was used (and if your fix appears to not work).

@tawfeqfauzi
Copy link
Author

Do you use flatpak package?

Yes flatpak 3.1.2

@tawfeqfauzi
Copy link
Author

Thanks for reporting!
This might be the same as #55 .

Try this extension for GNOME: https://extensions.gnome.org/extension/1503/tray-icons
Or this: https://extensions.gnome.org/extension/1031/topicons/

I tried and it works with both, with Flatpak and with native app, too.

If it works for you, I'll add this to the README.
If not, I'll spin up a POP! VM, but I'd appreciate if you could test. slightly_smiling_face

I've tried both extensions and unfortunately both don't resolve the issue

@tawfeqfauzi
Copy link
Author

Gtk-Message: 02:45:29.013: Failed to load module "appmenu-gtk-module"
Gtk-Message: 02:45:29.080: Failed to load module "canberra-gtk-module"
Gtk-Message: 02:45:29.080: Failed to load module "canberra-gtk-module"
Warning: failed to register service "org.kde.StatusNotifierItem-2-1" ((null):0, (null))

These 4 lines keep appearing every time I try to run it through terminal

@pktiuk
Copy link
Member

pktiuk commented Oct 3, 2020

@gombosg
This is flatpak issue.
On Pop OS everything works correctly witd deb package, but flatpak has problem with icon.

@tawfeqfauzi
We will further investigate this issue, but for now we recommend switching to deb/AppImage version.

@pktiuk pktiuk added the packaging Every issue linked with providing and fixing packages for different distributions and systems label Oct 3, 2020
@pktiuk
Copy link
Member

pktiuk commented Oct 3, 2020

The same problem with flatpak on Ubuntu 20.04.

@pktiuk pktiuk changed the title AntiMicroX system tray icon not appearing AntiMicroX system tray icon not appearing in flatpak package Oct 3, 2020
@gombosg
Copy link
Collaborator

gombosg commented Oct 4, 2020

Hm, confirmed - it works with older versions, I try to bisect the bug in this testing branch. (Needs to be tested with KDE, too)

@gombosg
Copy link
Collaborator

gombosg commented Oct 4, 2020

Can you test this build?
(After testing, you can remove it)

@pktiuk
Copy link
Member

pktiuk commented Oct 4, 2020

Now it works for me.
Does it work with kde?

@gombosg
Copy link
Collaborator

gombosg commented Oct 5, 2020

If the "Ubuntu Appindicators" extension is on, then the menu will be like this:
image

If it's off, and "Tray icons" extension is on, then it will be OK.

I tested in KDE and it looks like this:
image

Similar to the above, without the "x"-es.
For comparison, it's supposed to look like this:
image

Here, we need to look into the code to see how it interacts with various tray icon protocols.

@pktiuk
Copy link
Member

pktiuk commented Oct 5, 2020

I will further investigate it.

@tawfeqfauzi
Copy link
Author

I found this in the Flatpak documentation:

Status icons are the same concept as the system tray or the taskbar on Windows, or menu bar icons on Mac. These are supported on most Linux distributions, through libappindicator.

A number of Linux distributions don’t show status icons. It is still possible to provide a status icon, and it will be shown in some distributions. However, in order to ensure compatibility, it is recommended to only use status icons in a supplementary manner, and not to rely on them as the only mechanism for providing status information or access to particular features. This includes “minimize to tray” (or equivalent) functionality.

XEmbed style icons will function with the x11 permission but all other status icon interfaces require extra permissions to escape the sandbox and these services are not designed to be robust against untrusted software.

Here's a link too: https://docs.flatpak.org/en/latest/desktop-integration.html#status-icons

@gombosg
Copy link
Collaborator

gombosg commented Oct 6, 2020

Thanks! I merged a flatpak quick fix (try updating) until we get a better view of the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working packaging Every issue linked with providing and fixing packages for different distributions and systems
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants