Artix Linux Forum

Artix Linux => Applications & Software => Topic started by: CustomerServiceRobot on 05 October 2019, 03:22:42

Title: [SOLVED] Issues with software on KDE Plasma in xorg that don't appear in wayland
Post by: CustomerServiceRobot on 05 October 2019, 03:22:42
There are multiple applications that don't run correctly on xorg. One example is plasma browser integration, which doesn't show media controls on the desktop when playing videos. Another example is Discord, which doesn't display notifications or the system tray icon. One more example is Chromium, which can't connect to kwallet or inhibit the screensaver. These issues don't appear when I run Plasma under wayland. From research, it may be a dbus issue, but I'm not completely sure.
Title: Re: Issues with software on KDE Plasma with xorg that don't appear with wayland
Post by: phoenix_king_rus on 05 October 2019, 08:46:13
it may be a dbus issue, but I'm not completely sure.
Did you try to run Plasma under "dbus-launch"?
Title: Re: Issues with software on KDE Plasma with xorg that don't appear with wayland
Post by: CustomerServiceRobot on 05 October 2019, 11:58:12
I did get the discord tray icon working by running DBUS_SESSION_BUS_ADDRESS=$(dbus-launch) in a terminal and then starting discord from the same terminal, but it displayed with a question mark. Notifications would also freeze the application. I have a feeling it has to do with DBUS_SESSION_BUS_ADDRESS, because it's not set at all. Let me also clarify that I'm using runit.
Title: Re: Issues with software on KDE Plasma with xorg that don't appear with wayland
Post by: artoo on 05 October 2019, 15:23:09
Assuming you run openrc, plesase post the output of

Code: [Select]
rc-status --all

Sounds like you don't have elogind running.

Plasma integration works fine.
Title: Re: Issues with software on KDE Plasma with xorg that don't appear with wayland
Post by: CustomerServiceRobot on 05 October 2019, 23:15:35
As I stated in my previous comment, I'm using runit, not openrc. According to sv status elogind, it's running. If you're using openrc with plasma and xorg, and plasma integration is working, then this might be a runit issue.
Title: Re: Issues with software on KDE Plasma with xorg that don't appear with wayland
Post by: CustomerServiceRobot on 13 October 2019, 22:58:33
When running discord from a terminal, I receive the following output:

Quote
(discord:8668): libappindicator-WARNING **: 16:48:50.856: Unable to get the session bus: Unknown or unsupported transport “disabled” for address “disabled:”

(discord:8668): LIBDBUSMENU-GLIB-WARNING **: 16:48:50.856: Unable to get session bus: Unknown or unsupported transport “disabled” for address “disabled:”

From research, all problems pertaining to a missing tray icon in apps like discord were solved by installing libappindicator-gtk3. However, I already have this package installed.
Title: Re: Issues with software on KDE Plasma with xorg that don't appear with wayland
Post by: Blackflighter on 17 February 2020, 23:43:41
I've faced the same issue myself, at least in terms of Discord's tray icon not showing up. Void Linux seems to have run into this issue as well, which can be seen here (https://github.com/void-linux/void-packages/issues/11624). Not sure what the cause might be though.
Title: Re: Issues with software on KDE Plasma with xorg that don't appear with wayland
Post by: Blackflighter on 12 June 2020, 05:34:12
It looks like a solution has been found here (https://github.com/void-linux/void-packages/issues/11624). Editing Plasma's desktop file to include "dbus-run-session" to the "Exec" line lets system tray icons show as expected, at least for Discord.
Title: Re: Issues with software on KDE Plasma with xorg that don't appear with wayland
Post by: nyaomi on 11 July 2020, 00:36:56
In my system with Artix OpenRC and KDE, Electron applications show their tray icons; however I can confirm the plasma integration being broken on Chromium.
Title: Re: Issues with software on KDE Plasma with xorg that don't appear with wayland
Post by: nyaomi on 12 July 2020, 03:13:46
It looks like a solution has been found here (https://github.com/void-linux/void-packages/issues/11624). Editing Plasma's desktop file to include "dbus-run-session" to the "Exec" line lets system tray icons show as expected, at least for Discord.
 
In my system with Artix OpenRC and KDE, Electron applications show their tray icons; however I can confirm the plasma integration being broken on Chromium.
 Upon installing libappindicator-gtk2 and libappindicator-gtk3 I can face the same issue and "fix" with the same fix proposed; however this "fix" shows incorrect app icons on my system (but menus seem to behave almost normally)
Title: Re: Issues with software on KDE Plasma with xorg that don't appear with wayland
Post by: nous on 12 July 2020, 19:27:45
I did get the discord tray icon working by running DBUS_SESSION_BUS_ADDRESS=$(dbus-launch) in a terminal and then starting discord from the same terminal, but it displayed with a question mark. Notifications would also freeze the application. I have a feeling it has to do with DBUS_SESSION_BUS_ADDRESS, because it's not set at all. Let me also clarify that I'm using runit.
Someone on our TG group asked about dbus, and I've found that setting the DBUS_SESSION_BUS_ADDRESS variable from dbus-launch doesn't work reliably, at least for me.
What works is this:
Code: [Select]
% current_session=$(ls -t1 ~/.dbus/session-bus | head -1)
% source $current_session
% notify-send "Test"
Title: Re: Issues with software on KDE Plasma with xorg that don't appear with wayland
Post by: CustomerServiceRobot on 13 July 2020, 03:26:58
With the latest update to libappindicator-gtk3 (12.10.0.r296-1), discord finally appears in my system tray again! However, the icon is still a question mark, and notifications still don't work.
Title: Re: Issues with software on KDE Plasma with xorg that don't appear with wayland
Post by: nyaomi on 19 July 2020, 02:05:33
With the latest update to libappindicator-gtk3 (12.10.0.r296-1), discord finally appears in my system tray again! However, the icon is still a question mark, and notifications still don't work.
That is because you surely miss some DBUS environment variables.
Can you please run this command?
Code: [Select]
% env | grep DBUS
Title: Re: Issues with software on KDE Plasma with xorg that don't appear with wayland
Post by: CustomerServiceRobot on 20 July 2020, 01:51:58
Code: [Select]
KONSOLE_DBUS_SERVICE=:1.67
KONSOLE_DBUS_SESSION=/Sessions/1
KONSOLE_DBUS_WINDOW=/Windows/1
Title: Re: Issues with software on KDE Plasma with xorg that don't appear with wayland
Post by: CustomerServiceRobot on 20 July 2020, 03:56:11
I did a bit of digging, and it turns out that libappindicator-gtk3 is deprecated (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=895037). libayatana-appindicator should be used instead. However, currently it's only available on the AUR, and the PKGBUILD needs work before it will be usable.
Title: Re: Issues with software on KDE Plasma with xorg that don't appear with wayland
Post by: CustomerServiceRobot on 24 July 2020, 19:12:50
Another application that recently started showing an incorrect icon was variety wallpaper changer, which required a restart before displaying the correct icon. I was able to get libayatana-appindicator installed, which fixed both variety and discord icons. However, discord still does not display notifications. I tried using the discord_arch_electron AUR package to see if using the system's electron would resolve this issue, but it did not.
Title: Re: Issues with software on KDE Plasma with xorg that don't appear with wayland
Post by: Craumix on 23 November 2020, 01:56:51
Anyone got an update on this?
I'm facing the exact same problems with discord (and the browser integration). I've tried all the proposed solutions but sadly neither worked? So I was wondering if someone stumbled across another solution.

Edit: Unsure if dbus isssue as well because "export (dbus-launch)" fixes a warning from discord and also an error from the browser-integration. But sill the tray icon is bugged and the browser integration doesn't show media playing.

Edit2: Fixed! Turns out
It looks like a solution has been found here (https://github.com/void-linux/void-packages/issues/11624). Editing Plasma's desktop file to include "dbus-run-session" to the "Exec" line lets system tray icons show as expected, at least for Discord.
was the right solution... I just overlooked the relevant part.
So changing
"Exec=/usr/bin/startplasma-x11" to "Exec=dbus-run-session /usr/bin/startplasma-x11" in /usr/share/xsession/plasma.desktop
fixed it all Discord, Browser-Integration and Spotify.



Title: Re: [SOLVED] Issues with software on KDE Plasma in xorg that don't appear in wayland
Post by: alium on 20 March 2021, 12:13:38
fixed now in plasma-workspace-5.21.3-1.1, dbus-run-session added to our plasma.desktop