Closed rpallai closed 1 year ago
Hmm, permissions for it are added, what desktop and can you confirm it works on a non-flatpak install?
I'm on Plasma 5 (Fedora 26). Yes, it works on a native install, the systray icon always visible.
This happens on gnome-shell 3.26 with "kstatusnotifier/topiconsplus extension" as well.
failed to register service "org.kde.StatusNotifierItem-3-2
is output when run from shell.
This happens on XFCE Linux Mint 18.3. No systray icon, so cannot exit viber which coused my PC's shutdown time increased a lot. On a native install it works good.
Confirm this bug on Ubuntu 18.04, ubuntu-gnome session, no app-indicator
Confirmed on Linux Manjaro KDE5. Native viber app has icon, flatpak one doesn't.
Confirmed on SuSe Leap 15.0 KDE 5.12
Try flatpak run --own-name='org.kde.*' com.viber.Viber
Confirmed! Ubuntu 18.04 X64 Flatpak.
@TingPing: it works from terminal but how can I edit the Viber launcher icon in ubuntu 18.04 or how can i add this line to launcher: "flatpak run --own-name='org.kde.*' com.viber.Viber"
@TingPing It works with this parameter.
@TingPing Thanks, adding the --own-name='org.kde.*'
parameter on my existing menu launcher parameters for Viber made the icon appear like before (without FlatPak). I'm using Kubuntu 18.04.
@TingPing Thanks, it works.
@summoner001 To make it working without modyfing launchers I did:
flatpak override --user --own-name='org.kde.*' com.viber.Viber
You can do so with or without this --user
switch. But of course it would be nice to have this bug corrected -- I don't know flatpak that much, I don't know the other implications of adding --own-name='org.kde.*'
..
@wojciech-kopras Thank You! It works for now.
Confirmed on Kubuntu 18.04. Also - the workaround solves it.
Probably, --own-name=
and --talk-name=
need to be added to the manifest as done here.
Can confirm the same with Fedora 32 and Gnome. The workaround solves it.
Problem confirmed in PopOS! 20.10 as well. The proposed solution from @wojciech-kopras works! Thanks!
flatpak override --user --own-name='org.kde.*' com.viber.Viber
Isn't it possible to set the above command by default in /var/lib/flatpak/exports/share/applications/com.viber.Viber.desktop
everytime the user install viber?
I mean the developers could fix it, right?
From GNOME 40, it is not working anymore. The viber icon looks like this:
Do you still see the issue after latest updates?
From GNOME 40, it is not working anymore. The viber icon looks like this:
Try flatpak run --own-name='org.kde.*' --env=XDG_CURRENT_DESKTOP='GNOME' com.viber.Viber
Just tested by installing from Flathub on Fedora 35 (Gnome 41), and there is no icon. If I start it with the command suggested by @upanasiuk the icon is shown normally.
From GNOME 40, it is not working anymore. The viber icon looks like this:
Try
flatpak run --own-name='org.kde.*' --env=XDG_CURRENT_DESKTOP='GNOME' com.viber.Viber
I did some updates today (quite a few so I'm not sure which package was the problem), apparently I now also have to specify the ENV variable. I'm on KDE Plasma.
Prior to the updates it was enough to run this:
flatpak run --own-name='org.kde.*' com.viber.Viber
After the updates the tray icon would be "invisible", it took space in the tray bar but was not actually shown. The badge for notifications (why I want the tray icon in the first place) was also not shown.
The tray icon (with working badges) is shown if I run with:
flatpak run --own-name='org.kde.*' --env=XDG_CURRENT_DESKTOP='KDE' com.viber.Viber
On Gnome 42 there is also tray icon doesn't shows
The tray icon is shown if run:
flatpak run --own-name='org.kde.*' --env=XDG_CURRENT_DESKTOP='GNOME' com.viber.Viber
I can also confirm that on Ubuntu 22.04 with 'its' GNOME 'version' originally there is olny just 3 dots as icon but...
flatpak run --env=XDG_CURRENT_DESKTOP='GNOME' com.viber.Viber
...correct i!
In latest build I've switched the flatpak runtime to Gnome for other reasons. Would you please check whether if fixes this one too?
After your https://github.com/flathub/com.viber.Viber/issues/49 fix, and a secondary update today Viber is starting fine, but sadly without any type of 'tray' icon. There is no good or wrong icon, there is simply no icon.
(On 'stock' Ubuntu 22.04 with its GNOME)
Do you get tray icons from other flatpak applications? I would have to look at how someone else achieves it.
Flatpak'ed version of Telegram app has tray icon and it works.
Do you get tray icons from other flatpak applications? I would have to look at how someone else achieves it.
Sadly currently I do not use any other. But before the latest update therefore the current 'release' the earlier worked fine with the flatpak run --env=XDG_CURRENT_DESKTOP='GNOME' com.viber.Viber
help.
I'm having the same issue on Ubuntu 22.04 Mate, didn't had issue on older Ubuntu Mate releases (21.10, 21.04, 20.10, 20.04).
The issue is also present with .deb Viber installation now.
Currently have the /usr/bin/flatpak run --branch=stable --arch=x86_64 --env=XDG_CURRENT_DESKTOP='MATE' --command=viber com.viber.Viber
but it doesn't help.
EDIT: the icon doesn't appear in 'Notification Area' panel applet nor in 'Indicator Applet Complete'.
I have the same issue - no Viber icon in system tray on CentOS 7.9 with GNOME 3.28.3. None of the above mentioned workarounds work for me. The latest RPM version of Viber that I can run (with manually adding missing libraries to the binary folder) is 13.3.1 and I would just be using that one if it wasn't so unstable and if it wasn't missing new Viber functionality ("liking" messages with the heart icon). I'm using the Flathub Viber version 18.2.0.2
Using new Viber 18.2.0.2 does show an icon in Ubuntu Mate 22.04. "Indicator Applet Complete" aka panel "tray" both with Flatpak (without proper icon, a default red missing icon) and with .deb installation (proper Viber logo icon), but in both of those cases that icon doesn't do anything. Clicking on it while the Viber window was closed just opens an ultra small menu placeholder with nothing in it, and I still have to force kill Viber to exit it and open again to get back main window. This all leads me to believe that it's actually a Viber problem.
@streger I'm a bit confused about your last 2 comments. On 08.12 when you wrote that you had no tray icon, Viber 18.2.0.2 had been already available. I wrote my comment based on this version. Which version did you use then? Just because in the last 12 days there had been no new Viber version, neither new Flatpak installer for it, so I'm a bit confused how you got 2 different results?!
Do I misunderstand anything?
@Tamas-Toth-ebola As you've noticed in my first comment unfortunately I haven't noted the Viber version, which was definitely a mistake on my part. The version I've described there, in both .deb and Flatpak version were same and it was just version behind this last Viber. The dates don't matter, since at the time of my first comment I didn't had the latest version. I've installed latest version 18.2.0.2 just last week.
I can find in my /var/log/messages these entries:
Aug 24 13:30:45 my-pc-name journal: [AppIndicatorSupport-FATAL] invalid image format: /home/my-username/.var/app/com.viber.Viber/cache/runtime-my-username/qt-trayicon-ZwnrsD.png Aug 24 13:30:45 my-pc-name journal: [AppIndicatorSupport-FATAL] invalid image format: /home/my-username/.var/app/com.viber.Viber/cache/runtime-my-username/qt-trayicon-ZwnrsD.png Aug 24 13:30:45 my-pc-name journal: [AppIndicatorSupport-FATAL] invalid image format: /home/my-username/.var/app/com.viber.Viber/cache/runtime-my-username/qt-trayicon-ZwnrsD.png Aug 24 13:30:45 my-pc-name journal: [AppIndicatorSupport-FATAL] invalid image format: /home/my-username/.var/app/com.viber.Viber/cache/runtime-my-username/qt-trayicon-ZwnrsD.png Aug 24 13:30:45 my-pc-name journal: [AppIndicatorSupport-FATAL] invalid image format: /home/my-username/.var/app/com.viber.Viber/cache/runtime-my-username/qt-trayicon-ZwnrsD.png Aug 24 13:30:45 my-pc-name journal: [AppIndicatorSupport-FATAL] invalid image format: /home/my-username/.var/app/com.viber.Viber/cache/runtime-my-username/qt-trayicon-ZwnrsD.png Aug 24 13:34:26 my-pc-name journal: [AppIndicatorSupport-FATAL] invalid image format: /home/my-username/.var/app/com.viber.Viber/cache/runtime-my-username/qt-trayicon-QzLLOE.png Aug 24 13:34:26 my-pc-name journal: [AppIndicatorSupport-FATAL] invalid image format: /home/my-username/.var/app/com.viber.Viber/cache/runtime-my-username/qt-trayicon-QzLLOE.png Aug 24 13:34:26 my-pc-name journal: [AppIndicatorSupport-FATAL] invalid image format: /home/my-username/.var/app/com.viber.Viber/cache/runtime-my-username/qt-trayicon-QzLLOE.png Aug 24 13:34:26 my-pc-name journal: [AppIndicatorSupport-FATAL] invalid image format: /home/my-username/.var/app/com.viber.Viber/cache/runtime-my-username/qt-trayicon-QzLLOE.png Aug 24 13:34:26 my-pc-name journal: [AppIndicatorSupport-FATAL] invalid image format: /home/my-username/.var/app/com.viber.Viber/cache/runtime-my-username/qt-trayicon-QzLLOE.png Aug 24 13:34:26 my-pc-name journal: [AppIndicatorSupport-FATAL] invalid image format: /home/my-username/.var/app/com.viber.Viber/cache/runtime-my-username/qt-trayicon-QzLLOE.png
If I try to open these files with The GNOME image viewer, they are shown normally...
OK, I have resolved my issue... I switched from the GNOME extension "AppIndicator and KStatusNotifierItem Support" to "Tray Icons". Go figure.
In some cases (in my example is Ubuntu 22.04 with GNOME with Dash to Panel plugin) helps this issue: change Exec=/opt/viber/Viber %u string in viber.desktop file to Exec=dbus-launch /opt/viber/Viber %u
In some cases (in my example is Ubuntu 22.04 with GNOME with Dash to Panel plugin) helps this issue: change Exec=/opt/viber/Viber %u string in viber.desktop file to Exec=dbus-launch /opt/viber/Viber %u
Thank you very much! I was struggling with that for months now and that fixed it, finally I can see if I have new messages! Just a note, I had to remove the snap/flatpack version of Viber and install the download with dpkg -i, only after that did I have the /usr/share/applications/viber.desktop file, which I could change like mentioned above.
Hi!
Just would like to report, that after upgraded to Ubuntu 22.10 'beta', the tray icon had been appeared but without right click context menu. So now I can see the running application but still can not exit it from its tray icon menu.
Viber version is the latest Flatpak version: 18.2.0.2
App start had made by the default Flatpak launcher at /var/lib/flatpak/app/com.viber.Viber/current/.../export/share/applications/com.viber.Viber.desktop
with
Exec=/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=viber com.viber.Viber
Hi again,
Just to confirm that same behavior is happening to me as for @Tamas-Toth-ebola but with .deb Viber as well on Ubuntu Mate 22.04. Interestingly, I have another Ubuntu Mate 22.04 device and there the tray-icon right-click context menu work as expected, it pops-up populated with items, of which one is to exit (quit). So, now, I'm suspecting this is a graphic card thing, since my first device, where it's not working is an AMD CPU with dedicated nVidia graphic card. The second device, where it's working good, is an Intel CPU with no dedicated graphic card.
Hi @streger , what you wrote is more than strange for me, but I can confirm that my device is an Intel NUC8i7, of course with all integrated Intel solutions (CPU/IGP, etc).
Well, that's even stranger, since on your Intel device it's not working. And there I was thinking that's the issue. One of the reasons why I thought that might be the issue, is because I've compared complete dconf settings between my two devices and haven't found anything different that might be the cause for the issue. It seems that I'll have to do a clean install of either this stable or when the 22.10 comes out on the device where's it's broken (it was an upgrade from previous Ubuntu) Thanks for the update @Tamas-Toth-ebola.
the tray icon had been appeared but without right click context menu. So now I can see the running application but still can not exit it from its tray icon menu.
I can confirm that with Ubuntu 22.10 (or gnome-shell-extension-appindicator v46) tray icon is visible but right-click doesn't work.
Right click menu show up on KDE Plasma though (tested v5.24.7).
P.S. Got it working with old and new versions of "appindicator" extension using aforementioned "dbus-launch" workaround (add "dbus-launch" prior to launch command)
dbus-launch /usr/bin/flatpak run --branch=stable --arch=x86_64 --command=viber com.viber.Viber
I can confirm what @Alt37 mentioned. On 'stock' (from this aspect) Ubuntu 22.10 nightly, after installing dbus-x11
package, despite I'm on Wayland the solution works.
So summarized: after installing dbus-x11
, and edit the corresponding flatpak app shortcut (/var/lib/flatpak/app/com.viber.Viber/current/active/export/share/applications/com.viber.Viber.desktop
) to Exec=dbus-launch /usr/bin/flatpak run --branch=stable --arch=x86_64 --command=viber com.viber.Viber
instead of original execution attribution, the context menu of the systray icon works.
But there are some comments on it, just to know:
There is new version of Viber on latest 23.08 freedesktop runtime. Please update and let us know if it still fails for you?
The current Flathub version is theoretically version 20.3.0.1 (https://flathub.org/apps/com.viber.Viber), but in practice, version 21.0.0.1, which works fine for me, but basically already worked fine in the last months, so thanks for it.
(On Ubuntu 23.04 and also on latest 23.10 beta)
There is no systray icon in Flathub build. Which means it is not possible to quit the application because closing of the main window just send it to the background and no way to bring it back.