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

tray icon disapear since last update #27

Closed
vroger11 opened this issue Dec 4, 2022 · 29 comments · Fixed by #61
Closed

tray icon disapear since last update #27

vroger11 opened this issue Dec 4, 2022 · 29 comments · Fixed by #61

Comments

@vroger11
Copy link

vroger11 commented Dec 4, 2022

I don't know why there is this bug. But on manjaro with Kde 2.26.3 the tray icon stopped to appear

@axtloss
Copy link
Collaborator

axtloss commented Dec 4, 2022

Can you check if the tray icon is enabled in the webcord settings?
If it is, can you run webcord from the terminal with flatpak run io.github.spacingbat3.webcord and send the log?

@aleksasiriski
Copy link

+1

@aleksasiriski
Copy link

[3 zypak-helper] Wait found events, but sd-event found none
Gtk-Message: 15:41:58.940: Failed to load module "canberra-gtk-module"
Gtk-Message: 15:41:58.940: Failed to load module "canberra-gtk-module"
[3:1204/154158.950821:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[3:1204/154158.950849:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
[WebSocket] Listening at port 6463.
[UPDATE] Application is up-to-date!
[42:1204/154201.626721:ERROR:shared_image_factory.cc(575)] Could not find SharedImageBackingFactory with params: usage: Gles2|Raster|DisplayRead|Scanout, format: BGRA_8888, share_between_threads: 0, gmb_type: shared_memory
[42:1204/154201.627516:ERROR:shared_image_factory.cc(575)] Could not find SharedImageBackingFactory with params: usage: Gles2|Raster|DisplayRead|Scanout, format: BGRA_8888, share_between_threads: 0, gmb_type: shared_memory
[42:1204/154201.628366:ERROR:shared_image_factory.cc(575)] Could not find SharedImageBackingFactory with params: usage: Gles2|Raster|DisplayRead|Scanout, format: BGRA_8888, share_between_threads: 0, gmb_type: shared_memory
[42:1204/154201.628958:ERROR:shared_image_factory.cc(575)] Could not find SharedImageBackingFactory with params: usage: Gles2|Raster|DisplayRead|Scanout, format: BGRA_8888, share_between_threads: 0, gmb_type: shared_memory
[42:1204/154201.629573:ERROR:shared_image_factory.cc(575)] Could not find SharedImageBackingFactory with params: usage: Gles2|Raster|DisplayRead|Scanout, format: BGRA_8888, share_between_threads: 0, gmb_type: shared_memory
[42:1204/154201.642691:ERROR:shared_image_factory.cc(575)] Could not find SharedImageBackingFactory with params: usage: Gles2|Raster|DisplayRead|Scanout, format: BGRA_8888, share_between_threads: 0, gmb_type: shared_memory
[42:1204/154204.670264:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!
[42:1204/154204.671511:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 2 times!

@axtloss
Copy link
Collaborator

axtloss commented Dec 4, 2022

Hm nothing really indicates any permission error, could you try using webcord outside of flatpak to see if the issue persists? Webcord offers AppImages which is also what the flatpak uses, so it would be best if you'd try the AppImage

Edit: nevermind, I just saw the issue on the webcord repo, I'll investigate what extra permissions are needed

@valeth
Copy link

valeth commented Dec 4, 2022

I messed around with Flatseal for a bit
When I enable Session Bus the tray icon shows up, otherwise it doesn't.

@axtloss
Copy link
Collaborator

axtloss commented Dec 4, 2022

Yes, this would completely open the sandbox to any dbus communication which isn't something I want or even should/can do. So I'll have to track down to which dbus urls it actually talks to

@valeth
Copy link

valeth commented Dec 4, 2022

Adding org.kde.StatusNotifierItem-3-1 to the owned bus names seems to do the trick.

Not sure if those names are system specific though, definitely seems to be at least KDE specific.

@axtloss
Copy link
Collaborator

axtloss commented Dec 4, 2022

Adding org.kde.StatusNotifierItem-3-1 to the owned bus names seems to do the trick.

Not sure if those names are system specific though, definitely seems to be at least KDE specific.

I don't think it's kde specific, since the StatusNotifierItem-2-1 also worked on gnome with the appindicator extensions.
Although I'm not able to test this on gnome myself, so someone else will have to do it

@aleksasiriski
Copy link

aleksasiriski commented Dec 4, 2022

Adding org.kde.StatusNotifierItem-3-1 to the owned bus names seems to do the trick.

Not sure if those names are system specific though, definitely seems to be at least KDE specific.

On Gnome 43 Fedora 37 with AppIndicator and KStatusNotifierItem Support it works. Tray Icons: Reloaded doesn't work, yet it worked on previous version.

@vroger11
Copy link
Author

vroger11 commented Dec 4, 2022

Adding org.kde.StatusNotifierItem-3-1 to the owned bus names seems to do the trick.

Not sure if those names are system specific though, definitely seems to be at least KDE specific.

Sorry, I am late to answer, my problem is solved with this permission

@axtloss
Copy link
Collaborator

axtloss commented Dec 4, 2022

I'll add the kde StatusNotifierItem permission to have it working on kde, but I'll keep this issue open for gnome support

@vroger11
Copy link
Author

vroger11 commented Dec 5, 2022

I'll add the kde StatusNotifierItem permission to have it working on kde, but I'll keep this issue open for gnome support

You put the permission to Talks and not Owns so the permission is not working

You should have --own-name==org.kde.StatusNotifierItem-3-1 instead of --talk-name=org.kde.StatusNotifierItem-3-1 in the yml file

@axtloss
Copy link
Collaborator

axtloss commented Dec 5, 2022

Oh I completely missed that, I'll fix it asap. thanks for letting me know!

@axtloss
Copy link
Collaborator

axtloss commented Dec 5, 2022

After some more research, I found this issue, the flatpak build linter blocks me from changing the permission to be --own-name=org.kde.StatusNotifierItem-3-1.
It seems like the systray icon has to remain a broken feature for now

@kwadroke
Copy link

kwadroke commented Dec 6, 2022

I'm also seeing the missing Tray Icon issue with the AppImage and Ice-WM on Fedora 37. Has worked in past releases.
Neither KDE nor Gnome is installed.

@vroger11
Copy link
Author

vroger11 commented Dec 6, 2022

After some more research, I found this issue, the flatpak build linter blocks me from changing the permission to be --own-name=org.kde.StatusNotifierItem-3-1. It seems like the systray icon has to remain a broken feature for now

Too bad this is not allowed, maybe add a temporary fix on the README for kde users?

@axtloss
Copy link
Collaborator

axtloss commented Dec 6, 2022

I added the instructions (see #30) although I'll keep this open until it's properly fixed

@valeth
Copy link

valeth commented Dec 8, 2022

@axtloss
looked at the OBS Studio Flatpak definition and they seem to be able to use own-name just fine.
Also shows up when inspecting it with Flatseal.

https://github.com/obsproject/obs-studio/blob/ddba05c36cf89148533e4a2720154500560bc091/CI/flatpak/com.obsproject.Studio.json

@axtloss
Copy link
Collaborator

axtloss commented Dec 8, 2022

OBS doesn't go through the flathub build process, meaning they don't have to pass the flatpak linter checks, which is why they're able to use it

@aleksasiriski
Copy link

this also fixes the tray icon

SpacingBat3/WebCord#328 (comment)

@axtloss
Copy link
Collaborator

axtloss commented Dec 8, 2022

I'd recommend trying the owns permission fix before completely downgrading and masking the package

@aleksasiriski
Copy link

I'd recommend trying the owns permission fix before completely downgrading and masking the package

That fix is mainly for also broken Screen Share on Wayland, because of new Electron.

@Snaggly
Copy link
Contributor

Snaggly commented Jan 1, 2023

Hello, seems like this issue is still persisting. I can confirm that adding org.kde.StatusNotifierItem-3-1 to the "owns" section in FlatSeal also made the Webcord appindicator show up again under Plasma 5.26.4. However notification pop-ups do not show up still, when a new dm or message is being received.

@BenA0
Copy link

BenA0 commented Jan 8, 2023

sway + waybar , arch
running in wayland

adding org.kde.StatusNotifierItem-3-1 to owns doesn't fix it.

EDIT: when adding org.kde.* to owns , tray icon is back, not sure which specifically causes it to work.

@jtfen86
Copy link

jtfen86 commented Mar 14, 2023

Fedora 37, Budgie desktop, no tray icon no matter which tweak I try. Even org.kde.* to owns did nothing. I have my flatpaks installed as user if that matters.

@SaladinAyyub
Copy link

SaladinAyyub commented Mar 27, 2023

For me worked by adding org.kde.* in Owns using flatseal

Screenshot from 2023-03-27 18-41-23

@bbhtt
Copy link
Contributor

bbhtt commented Jul 23, 2023

Webcord now uses Electron 25 which should no longer requires the workaround in the readme https://github.com/flathub/io.github.spacingbat3.webcord#fix-tray-icon (own-name=org.kde.*) due to this patch https://chromium-review.googlesource.com/c/chromium/src/+/4179380 (Included in Electron >=23.3.0)

Can you please test?

In my testing of Webcord and other apps, the org.kde.StatusNotifierWatcher also seems to be not required.

@aleksasiriski
Copy link

Works for me without own-name=org.kde.*

@bbhtt
Copy link
Contributor

bbhtt commented Jul 24, 2023

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

10 participants