nextcloud / desktop

💻 Desktop sync client for Nextcloud
https://nextcloud.com/install/#install-clients
GNU General Public License v2.0
3.05k stars 801 forks source link

[Bug]: In Gnome with AppIndicators extension, status icon is missing (showing "...") #6443

Open RalfJung opened 9 months ago

RalfJung commented 9 months ago

⚠️ Before submitting, please verify the following: ⚠️

Bug description

This is what the Nextcloud status icon looks like in the AppIndicators part of my Gnome panel:

image

It just shows the three dots "..." fallback icon, rather than the proper Nextcloud icon.

Steps to reproduce

  1. Enable the AppIndicators extension in Gnome. (Without it, you don't get any status icon.)
  2. Start the Nextcloud client

Expected behavior

Nextcloud should show up in the panel with a reasonable icon.

Instead, it shows up with just "..." as the icon.

Which files are affected by this bug

This is not about files

Operating system

Linux

Which version of the operating system you are running.

Debian testing

Package

Distro package manager

Nextcloud Server version

Not relevant

Nextcloud Desktop Client version

3.11.0

Is this bug present after an update or on a fresh install?

Fresh desktop client install

Are you using the Nextcloud Server Encryption module?

Encryption is Enabled

Are you using an external user-backend?

Nextcloud Server logs

No response

Additional info

No response

RalfJung commented 9 months ago

Using the Gnome debug facilities, I can determine that the IconName property of this AppIndicator icon is set to state-ok. This icon seems to exist for KDE's "breeze" theme, but not in the global "hicolor" folder or the Gnome theme:

$ find /usr/share/icons -name "*state-ok*"
/usr/share/icons/breeze-dark/status/22/state-ok.svg
/usr/share/icons/breeze-dark/status/16/state-ok.svg
/usr/share/icons/breeze/status/22/state-ok.svg
/usr/share/icons/breeze/status/16/state-ok.svg

So it seems like the Nextcloud AppIndicator assumes icons to exist that do not generally exist? I am not really sure how this is supposed to work though.

func0der commented 8 months ago

@RalfJung Could you share how you found that information/debugged Nextcloud for that case? I could not find any error message or anything and I do not have an Icon at all.

Maybe for you other information is helpful that other people shared on the net. If you have ... as the icon, the gtk icon library might be missing. It is probably bundled in libappindicator-gtk3 on Fedora, and something similar on others distros :)

RalfJung commented 8 months ago

Could you share how you found that information/debugged Nextcloud for that case? I could not find any error message or anything and I do not have an Icon at all.

I used the instructions I found here, except that instead of r(0)._indicator._proxy.Id I checked r(0)._indicator._proxy.IconName.

Maybe for you other information is helpful that other people shared on the net. If you have ... as the icon, the gtk icon library might be missing. It is probably bundled in libappindicator-gtk3 on Fedora, and something similar on others distros :)

I don't see any package like that on Debian...

In my case what helped is to go into the settings of gnome-shell-extension-appindicator, and set a custom icon for "Indicator ID": Nextcloud, "Icon Name": Nextcloud. Now I have the nextcloud icon. It doesn't reflect the current sync status; that seems to be the part that's breaking the icon in the first place, judging from this "state-ok" icon name.

func0der commented 8 months ago

@RalfJung Maybe try Try libappindicator3. :thinking:

I found my problem though...extensions were completely disabled somehow. Dunno how that happened.

RalfJung commented 8 months ago

libappindicator3

That package is installed. :shrug:

Also, other indicators have icons that work fine. So I don't think it's a system/setup issue. It's only Nextcloud that does not work (from the few applications I tried).

dpaessler commented 6 days ago

I have the same problem for the last few weeks. Gnome is version 46, running under wayland with AppIndicator version 59 and Nextcloud Desktop-Client is version 3.14.4. It did work for me before, but I don't know what has changed for it to stop working.