flathub / com.synology.SynologyDrive

https://flathub.org/apps/details/com.synology.SynologyDrive
7 stars 10 forks source link

No system tray icon is shown #3

Closed thecursedfly closed 1 year ago

thecursedfly commented 3 years ago

After the Synology Drive Client is installed and configured to sync with the NAS, the following option can be configured:

After this, a tray icon should be shown for the application whenever the main window is closed.

However, currently no icon is shown, although the application is indeed minimized to the system tray area. In fact, it is possible to guess the space where the icon should be and right click on it to get the Synology Drive context menu.

tomkv commented 3 years ago

For me, it shows a three dots in the systray area (on Ubuntu, with AppIndicators).

Normally, it should show full-color icon. The option that @thecursedfly writes about is a monochromatic one, that should better fit in with the Gnome panel. Neither of them are shown.

In a normal install from the Synology-provided deb, they work as they should.

gregos-winus commented 3 years ago

I am aware of this issue. Many apps have the same behaviour (eg 3 dots in the task bar) : transmission, vlc... Discord has the correct behaviour (eg icon in task bar). But I have not yet discriminate "the little difference that makes the thing"

HorstBaerbel commented 2 years ago

I made this work by installing the AppIndicator and KStatusNotifierItem Support extension. This seems to be needed with the .deb on Ubuntu 20.04 LTS though too, so this is probably (GNOME?) intended behaviour? Maybe a hint in the README would be helpful...

ppiutti commented 1 year ago

This is broken again in Fedora 37 (GNOME 43) with Appindicator extension installed. Most apps icons are displayed but the Drive one is missing. It used to work in Fedora 37. Sync keeps happening on the background but tray icon is not shown. Tested in two separate installation (F36 > F37 upgrade and clean F37 install): same results.

PS: I tested it both in Wayland and X11 sessions. No changes.

AmrEldib commented 1 year ago

I have the same issue; system tray icon is missing. I'm using Pop!_OS 22.04 LTS and GNOME 42.3.1. Tested in Wayland and X11 Appindicator extension is also installed. Other apps icons show up correctly but Drive doesn't App is running fine and syncs correctly.

e1ven commented 1 year ago

@ppiutti / @AmrEldib -

On my system it looks like may have been due to the October change which removed the needed permission

That PR reverted the earlier PR which let the icon work

If you try running Synology Drive from the terminal with flatpak run com.synology.SynologyDrive, you may be able to see where it's erroring. On my system, I see the message

failed to register service "org.kde.StatusNotifierItem-7-1"

This is the same service which was removed in #27. In that PR they say that the exact number may vary, but it was 7-1 for each PC I've checked. :shrug: YMMV.

I re-added this locally by running flatpak override --user --own-name=org.kde.StatusNotifierItem-7-1, and verified in flatseal. For me, it fixed this across multiple PCs, all of which were broken.

AmrEldib commented 1 year ago

Thank you @e1ven This fixed it for me on Gnome Wayland (I'll try later on X11) I didn't get the same error when I ran it from the terminal, but the issue seems fixed by applying the command to grant permission (and confirmed in flatseal, under Session Bus > Owns > org.kde.StatusNotifierItem-7-1 )

ppiutti commented 1 year ago

Thank you @e1ven I confirm your procedure works. The only annoying thing is that if I open the System Tray Menu, it does not appear below the tray icon but in the middle of the desktop. But I think I can live with it :)