mullvad / mullvadvpn-app

The Mullvad VPN client app for desktop and mobile
https://mullvad.net/
GNU General Public License v3.0
5.08k stars 338 forks source link

Missing App Tray Icon #4861

Open aaronovz1 opened 1 year ago

aaronovz1 commented 1 year ago

After upgrading to 2023.4 the app tray icon no longer shows. Running Ubuntu Mate 22.04.

bleakstew commented 1 year ago

Same issue. Ubuntu 22.04.2, xfce4 4.16

rossjrw commented 1 year ago

Similar but not identical issue on Gnome 44.1, Fedora 38, Wayland. The tray icon, which was previously a green/red lock, is now a monochrome '...' with no indication of whether Mullvad is active. When clicked it still works as a connect/disconnect UI.

image

This is after updating to 2023.4.

faern commented 1 year ago

We are aware that a number of users on different platforms have these two issues (missing icon or icon becoming three dots). We are investigating. But so far we have not been able to reproduce the issue. For us the icon always shows up.

If you want to help resolve the issue, please provide more information about your setup. And if you detect that it works in certain scenarios but not others, please let us know steps on how to reproduce.

aidandenlinger commented 1 year ago

I have the same issue as @rossjrw (https://github.com/mullvad/mullvadvpn-app/issues/4861#issuecomment-1620884617). I'm on Fedora 38, Gnome 44.2, Wayland, using the ubuntu/gnome-shell-extension-appindicator gnome extension installed from the fedora repos to have app tray icons. When I start the Mullvad app on 2023.4, the app tray will show the three dots and never update. I can launch it from the command line with mullvad-vpn or from the app menu and the issue still occurs. This was not occurring on 2023.3. I tried changing the User Interface options/autoconnect options and restarting the app, but that didn't fix the problem.

However, if I open the app, then turn off and on the AppIndicator extension (or alternatively, have AppIndicator off, start Mullvad, then turn on AppIndicator), the lock appears and works as expected (I have the monochrome icon option on so the lack of colors is expected). Again, this wasn't needed in 2023.3, this only occurred starting with 2023.4. Let me know if there's anything else I can report about my setup or help debug!

Kooha-2023-07-05-13-07-20.webm

raksooo commented 1 year ago

I've tried out the different tray icon gnome shell extensions. And it appears that with the Electron 23.2.0 AppIndicator and KStatusNotifierItem Support only shows dots, while Tray Icons: Reloaded and TopIconsFix works (although scaling the icon incorrectly). When we upgrade Electron it will go back to working with AppIndicator and KStatusNotifierItem Support, but will not work with the others.

aidandenlinger commented 1 year ago

Thank you for the info! I also just came across #4798 which tackles the same issue. I'll leave this issue to those who are completely missing a tray icon :)

aaronovz1 commented 1 year ago

We are aware that a number of users on different platforms have these two issues (missing icon or icon becoming three dots). We are investigating. But so far we have not been able to reproduce the issue. For us the icon always shows up.

If you want to help resolve the issue, please provide more information about your setup. And if you detect that it works in certain scenarios but not others, please let us know steps on how to reproduce.

What other info do you need? Did you test on Ubuntu Mate 22.04.2 LTS?

oxbqkwwxfrqccwtg commented 1 year ago

+1

EDIT 2: Never mind, now it consistently works without a problem. I think the app is simply a little attention-seeking... I will spent 15 minutes a week thinking about the app, that should suffice...

EDIT 1: I was wrong on the fix being due to the apt upgrade and am now able to consistently recreate the fault. The fault only occurs if no connection can be established upon start. Since i'm constantly using a hotspot, sometimes I forget to turn it on. In the case where i do not turn it on, the icon won't appear, even after a connection has been established afterwards.

Tray icon suddenly dissapeared after restart even though the mullvad-gui daemon is running.

I'm on Ubuntu 23.04 with Xfce 4.18 and libxfce4panel-2.0-4

The panel has two plugins for showing third-party tray icons:

The Mullvad VPN tray icon is displayed through libsystray.so

Made it work again through upgrading via apt upgrade, there were no xfce4* upgrades.

/var/log/apt/history.log:

Start-Date: 2023-08-12  13:34:40
Commandline: apt upgrade
Requested-By: oxbqkwwxfrqccwtg (1000)
Upgrade: libperl5.36:amd64 (5.36.0-7, 5.36.0-7ubuntu0.23.04.1), libcups2:amd64 (2.4.2-3ubuntu2, 2.4.2-3ubuntu2.2), libcurl4:amd64 (7.88.1-8ubuntu1, 7.88.1-8ubuntu2.1), initramfs-tools-core:amd64 (0.142ubuntu2, 0.142ubuntu2.2), libwebpmux3:amd64 (1.2.4-0.1build1, 1.2.4-0.1ubuntu0.23.04.1), cups-filters:amd64 (2.0~rc1-0ubuntu1, 2.0~rc1-0ubuntu1.2), python3.11:amd64 (3.11.2-6, 3.11.4-1~23.04), bind9-host:amd64 (1:9.18.12-1ubuntu1, 1:9.18.12-1ubuntu1.1), libcurl3-gnutls:amd64 (7.88.1-8ubuntu1, 7.88.1-8ubuntu2.1), openssh-client:amd64 (1:9.0p1-1ubuntu8, 1:9.0p1-1ubuntu8.4), libglx-mesa0:amd64 (23.0.2-1ubuntu1, 23.0.4-0ubuntu1~23.04.1), python3-distupgrade:amd64 (1:23.04.5, 1:23.04.6), cups-bsd:amd64 (2.4.2-3ubuntu2, 2.4.2-3ubuntu2.2), avahi-autoipd:amd64 (0.8-6ubuntu1, 0.8-6ubuntu1.23.04.1), perl:amd64 (5.36.0-7, 5.36.0-7ubuntu0.23.04.1), libtinfo6:amd64 (6.4-2, 6.4-2ubuntu0.1), tzdata:amd64 (2023c-2exp1ubuntu1, 2023c-2exp1ubuntu1.1), libx11-xcb1:amd64 (2:1.8.4-2, 2:1.8.4-2ubuntu0.2), cups-common:amd64 (2.4.2-3ubuntu2, 2.4.2-3ubuntu2.2), gstreamer1.0-gl:amd64 (1.22.1-1ubuntu1, 1.22.1-1ubuntu1.1), tar:amd64 (1.34+dfsg-1.2, 1.34+dfsg-1.2ubuntu0.1), libavahi-common-data:amd64 (0.8-6ubuntu1, 0.8-6ubuntu1.23.04.1), libcap2-bin:amd64 (1:2.66-3ubuntu2, 1:2.66-3ubuntu2.1), ghostscript-x:amd64 (10.0.0~dfsg1-0ubuntu1, 10.0.0~dfsg1-0ubuntu1.2), libgbm1:amd64 (23.0.2-1ubuntu1, 23.0.4-0ubuntu1~23.04.1), tzdata-icu:amd64 (2023c-2exp1ubuntu1, 2023c-2exp1ubuntu1.1), libavahi-core7:amd64 (0.8-6ubuntu1, 0.8-6ubuntu1.23.04.1), ubuntu-drivers-common:amd64 (1:0.9.7.1, 1:0.9.7.1.1), initramfs-tools-bin:amd64 (0.142ubuntu2, 0.142ubuntu2.2), apparmor:amd64 (3.0.8-1ubuntu2, 3.0.8-1ubuntu2.1), libgs10-common:amd64 (10.0.0~dfsg1-0ubuntu1, 10.0.0~dfsg1-0ubuntu1.2), liblouis20:amd64 (3.24.0-1, 3.24.0-1ubuntu0.1), cups-client:amd64 (2.4.2-3ubuntu2, 2.4.2-3ubuntu2.2), cups-ppdc:amd64 (2.4.2-3ubuntu2, 2.4.2-3ubuntu2.2), alsa-ucm-conf:amd64 (1.2.6.3-1ubuntu8, 1.2.6.3-1ubuntu9.1), python3-reportlab-accel:amd64 (3.6.12-1build1, 3.6.12-1ubuntu0.1), cups-daemon:amd64 (2.4.2-3ubuntu2, 2.4.2-3ubuntu2.2), libwebpdemux2:amd64 (1.2.4-0.1build1, 1.2.4-0.1ubuntu0.23.04.1), libinput10:amd64 (1.22.1-1, 1.22.1-1ubuntu0.1), python3-reportlab:amd64 (3.6.12-1build1, 3.6.12-1ubuntu0.1), libgs10:amd64 (10.0.0~dfsg1-0ubuntu1, 10.0.0~dfsg1-0ubuntu1.2), libfreetype6:amd64 (2.12.1+dfsg-4, 2.12.1+dfsg-4ubuntu0.1), python3-requests:amd64 (2.28.1+dfsg-1ubuntu1, 2.28.1+dfsg-1ubuntu1.1), libgstreamer-gl1.0-0:amd64 (1.22.1-1ubuntu1, 1.22.1-1ubuntu1.1), avahi-daemon:amd64 (0.8-6ubuntu1, 0.8-6ubuntu1.23.04.1), libapparmor1:amd64 (3.0.8-1ubuntu2, 3.0.8-1ubuntu2.1), libllvm15:amd64 (1:15.0.7-3, 1:15.0.7-3ubuntu0.23.04.1), librsvg2-common:amd64 (2.54.5+dfsg-1ubuntu2, 2.54.5+dfsg-1ubuntu2.1), libpython3.11-minimal:amd64 (3.11.2-6, 3.11.4-1~23.04), liblouis-data:amd64 (3.24.0-1, 3.24.0-1ubuntu0.1), libcupsfilters2-common:amd64 (2.0~rc1-0ubuntu1, 2.0~rc1-0ubuntu1.1), libsane-hpaio:amd64 (3.22.10+dfsg0-1, 3.22.10+dfsg0-1ubuntu1), libpoppler-cpp0v5:amd64 (22.12.0-2ubuntu1, 22.12.0-2ubuntu1.1), libxatracker2:amd64 (23.0.2-1ubuntu1, 23.0.4-0ubuntu1~23.04.1), libxml2:amd64 (2.9.14+dfsg-1.1build2, 2.9.14+dfsg-1.1ubuntu0.1), fonts-opensymbol:amd64 (4:102.12+LibO7.5.2-0ubuntu1, 4:102.12+LibO7.5.5-0ubuntu0.23.04.1), cups-filters-core-drivers:amd64 (2.0~rc1-0ubuntu1, 2.0~rc1-0ubuntu1.2), mesa-va-drivers:amd64 (23.0.2-1ubuntu1, 23.0.4-0ubuntu1~23.04.1), poppler-utils:amd64 (22.12.0-2ubuntu1, 22.12.0-2ubuntu1.1), libgl1-mesa-dri:amd64 (23.0.2-1ubuntu1, 23.0.4-0ubuntu1~23.04.1), cups-ipp-utils:amd64 (2.4.2-3ubuntu2, 2.4.2-3ubuntu2.2), libx11-data:amd64 (2:1.8.4-2, 2:1.8.4-2ubuntu0.2), libgstreamer-plugins-good1.0-0:amd64 (1.22.1-1ubuntu1, 1.22.1-1ubuntu1.2), libcap2:amd64 (1:2.66-3ubuntu2, 1:2.66-3ubuntu2.1), ghostscript:amd64 (10.0.0~dfsg1-0ubuntu1, 10.0.0~dfsg1-0ubuntu1.2), libssl3:amd64 (3.0.8-1ubuntu1, 3.0.8-1ubuntu1.2), gstreamer1.0-x:amd64 (1.22.1-1ubuntu1, 1.22.1-1ubuntu1.1), libpcsclite1:amd64 (1.9.9-1, 1.9.9-1ubuntu0.23.04.1), libpython3.11:amd64 (3.11.2-6, 3.11.4-1~23.04), libpoppler-glib8:amd64 (22.12.0-2ubuntu1, 22.12.0-2ubuntu1.1), printer-driver-postscript-hp:amd64 (3.22.10+dfsg0-1, 3.22.10+dfsg0-1ubuntu1), gstreamer1.0-plugins-good:amd64 (1.22.1-1ubuntu1, 1.22.1-1ubuntu1.2), gstreamer1.0-plugins-base:amd64 (1.22.1-1ubuntu1, 1.22.1-1ubuntu1.1), bind9-dnsutils:amd64 (1:9.18.12-1ubuntu1, 1:9.18.12-1ubuntu1.1), libpoppler126:amd64 (22.12.0-2ubuntu1, 22.12.0-2ubuntu1.1), mesa-vulkan-drivers:amd64 (23.0.2-1ubuntu1, 23.0.4-0ubuntu1~23.04.1), ncurses-base:amd64 (6.4-2, 6.4-2ubuntu0.1), libpython3.11-stdlib:amd64 (3.11.2-6, 3.11.4-1~23.04), snapd:amd64 (2.59.1+23.04ubuntu1, 2.59.1+23.04ubuntu1.1), python3-renderpm:amd64 (3.6.12-1build1, 3.6.12-1ubuntu0.1), cups-browsed:amd64 (2.0~rc1-0ubuntu1, 2.0~rc1-0ubuntu1.1), libwebp7:amd64 (1.2.4-0.1build1, 1.2.4-0.1ubuntu0.23.04.1), libcupsimage2:amd64 (2.4.2-3ubuntu2, 2.4.2-3ubuntu2.2), distro-info-data:amd64 (0.57, 0.57ubuntu0.1), linux-firmware:amd64 (20230323.gitbcdcfbcf-0ubuntu1, 20230323.gitbcdcfbcf-0ubuntu1.5), libavahi-common3:amd64 (0.8-6ubuntu1, 0.8-6ubuntu1.23.04.1), cpp-12:amd64 (12.2.0-17ubuntu1, 12.3.0-1ubuntu1~23.04), libhpmud0:amd64 (3.22.10+dfsg0-1, 3.22.10+dfsg0-1ubuntu1), ca-certificates:amd64 (20230311, 20230311ubuntu0.23.04.1), librsvg2-2:amd64 (2.54.5+dfsg-1ubuntu2, 2.54.5+dfsg-1ubuntu2.1), hplip:amd64 (3.22.10+dfsg0-1, 3.22.10+dfsg0-1ubuntu1), libppd2-common:amd64 (2:2.0~rc1-0ubuntu1, 2:2.0~rc1-0ubuntu1.1), libglapi-mesa:amd64 (23.0.2-1ubuntu1, 23.0.4-0ubuntu1~23.04.1), perl-base:amd64 (5.36.0-7, 5.36.0-7ubuntu0.23.04.1), bind9-libs:amd64 (1:9.18.12-1ubuntu1, 1:9.18.12-1ubuntu1.1), python3.11-minimal:amd64 (3.11.2-6, 3.11.4-1~23.04), accountsservice:amd64 (22.08.8-1ubuntu7, 22.08.8-1ubuntu7.1), cups-core-drivers:amd64 (2.4.2-3ubuntu2, 2.4.2-3ubuntu2.2), libavahi-glib1:amd64 (0.8-6ubuntu1, 0.8-6ubuntu1.23.04.1), initramfs-tools:amd64 (0.142ubuntu2, 0.142ubuntu2.2), hplip-data:amd64 (3.22.10+dfsg0-1, 3.22.10+dfsg0-1ubuntu1), libpam-cap:amd64 (1:2.66-3ubuntu2, 1:2.66-3ubuntu2.1), cups:amd64 (2.4.2-3ubuntu2, 2.4.2-3ubuntu2.2), libegl-mesa0:amd64 (23.0.2-1ubuntu1, 23.0.4-0ubuntu1~23.04.1), ubuntu-release-upgrader-core:amd64 (1:23.04.5, 1:23.04.6), amd64-microcode:amd64 (3.20220411.1ubuntu3, 3.20220411.1ubuntu3.1), libgs-common:amd64 (10.0.0~dfsg1-0ubuntu1, 10.0.0~dfsg1-0ubuntu1.2), perl-modules-5.36:amd64 (5.36.0-7, 5.36.0-7ubuntu0.23.04.1), libncursesw6:amd64 (6.4-2, 6.4-2ubuntu0.1), ncurses-bin:amd64 (6.4-2, 6.4-2ubuntu0.1), ubuntu-advantage-tools:amd64 (27.14.4, 28.1~23.04), libx11-6:amd64 (2:1.8.4-2, 2:1.8.4-2ubuntu0.2), libgstreamer-plugins-base1.0-0:amd64 (1.22.1-1ubuntu1, 1.22.1-1ubuntu1.1), gcc-12-base:amd64 (12.2.0-17ubuntu1, 12.3.0-1ubuntu1~23.04), mesa-vdpau-drivers:amd64 (23.0.2-1ubuntu1, 23.0.4-0ubuntu1~23.04.1), cups-server-common:amd64 (2.4.2-3ubuntu2, 2.4.2-3ubuntu2.2), libaccountsservice0:amd64 (22.08.8-1ubuntu7, 22.08.8-1ubuntu7.1), printer-driver-hpcups:amd64 (3.22.10+dfsg0-1, 3.22.10+dfsg0-1ubuntu1), libavahi-client3:amd64 (0.8-6ubuntu1, 0.8-6ubuntu1.23.04.1), libppd2:amd64 (2:2.0~rc1-0ubuntu1, 2:2.0~rc1-0ubuntu1.1), libcupsfilters2:amd64 (2.0~rc1-0ubuntu1, 2.0~rc1-0ubuntu1.1), libncurses6:amd64 (6.4-2, 6.4-2ubuntu0.1), openssl:amd64 (3.0.8-1ubuntu1, 3.0.8-1ubuntu1.2), libinput-bin:amd64 (1.22.1-1, 1.22.1-1ubuntu0.1)
End-Date: 2023-08-12  13:37:01
andyrozman commented 1 year ago

Using Ubuntu 22.04 LTS, with Unity interface, no "indicator" there at all.

NeilsC commented 1 year ago

I have no tray icon as well. Version details:

Ubuntu 23.04 XFCE 4.18.0 Mullvad 2023.4

skelmy commented 1 year ago

Ubuntu 22.04LTS, Unity 7, no tray icon same, been the same since the last beta version since then on, apparently I am being told it's an Electron issue? I mean there has to be a work around fix? Other icons on every other APP I use work?

Also these commands do nothing but run the app:

XDG_CURRENT_DESKTOP='' " /opt/Mullvad VPN/mullvad-gui

XDG_CURRENT_DESKTOP='' "/opt/Mullvad VPN/mullvad-gui"

skelmy commented 1 year ago

I can confirm that this actually works now, after some updates it must have started working:

XDG_CURRENT_DESKTOP='' "/opt/Mullvad VPN/mullvad-gui"

But you get an error on exit, so run it with this instead:

XDG_CURRENT_DESKTOP='' "/opt/Mullvad VPN/mullvad-gui" >/dev/null 2>&1

Tried to create a .desktop launcher, runs but won't show up in icons after updating local icon cache, created a .sh in /home/username/.local/bin/MullvadXDG.sh

use:

Exec=cd /home/username/.local/bin/MullvadXDG.sh

The cd will allow you to run the .sh

This after a local icon cache update will show in the Unity Lens for APPS, but, the command still runs a terminal, and I have tried everything to try and start Mullvad this way and hide the terminal every command I have tried doesn't work.

If anyone can solve this problem, then this would be a full work around for now, and any other apps effected by the Electron bug with Unity.

skelmy commented 1 year ago

I have an update, Mullvad support helped me fix this, props to them:

gedit admin:///usr/share/applications/mullvad-vpn.desktop

And do this:

Exec="/opt/Mullvad VPN/mullvad-vpn" %U

Exec=env XDG_CURRENT_DESKTOP='' "/opt/Mullvad VPN/mullvad-vpn" %U

ie comment out the original line:

Exec="/opt/Mullvad VPN/mullvad-vpn" %U

And add this bellow it:

Exec=env XDG_CURRENT_DESKTOP='' "/opt/Mullvad VPN/mullvad-vpn" %U

Save and exit. This then will put back running Mullvad on Unity 7 with the tray icon, and should work for any other apps this problem with Electron causes, that the Electron team have yet to actually fix.

For now this works, once you discover the Electron team have fixed the bug, then you can obviously put back as originally was.

Also I am not sure what will happen to that file when you update Mullvad, you might wanna set it to read only so it never gets updated.

andyrozman commented 1 year ago

Adding Exec=env XDG_CURRENT_DESKTOP='' "/opt/Mullvad VPN/mullvad-vpn" %U

This solution doesn't work for me.

EDIT: After restart it started working, so I have icon now.

getlogname commented 3 months ago

Same issue in Fedora 40, skelmy's workaround worked for me too.

NeilsC commented 3 months ago

I found a fix that works for me in XFCE on Ubuntu:

Disable "Ayatana Indicator Application" from automatically starting on login. On XFCE, go to Settings -> Session and Startup -> Application Autostart. Uncheck the box next to Ayatana Indicator Application, then reboot.

The Mullvad icon is now visible when using the "Status Try Plugin" in XFCE panel (it still doesn't show up in "Indicator Plugin" or "StatusNotifier Plugin").

Ubuntu 24.04 XFCE 4.18

rsammelson commented 2 months ago

This is broken for me using the eww bar on Fedora, overriding XDG_CURRENT_DESKTOP did not fix the issue. What other information would be useful to reproduce/diagnose the issue?

andyrozman commented 2 months ago

This is broken for me using the eww bar on Fedora, overriding XDG_CURRENT_DESKTOP did not fix the issue. What other information would be useful to reproduce/diagnose the issue?

Did you restart your machine afterwards... XDG fix started working for me, only after restart.

rsammelson commented 2 months ago

This is broken for me using the eww bar on Fedora, overriding XDG_CURRENT_DESKTOP did not fix the issue. What other information would be useful to reproduce/diagnose the issue?

Did you restart your machine afterwards... XDG fix started working for me, only after restart.

Yes, I did reboot. It started working for a while at one point but stopped again (no changes between).