[DONE] [Request] Wrap KDE Plasma X11 with `plasma-dbus-run-session-if-needed`
Currently, the beginning of /usr/share/xsessions/plasma.desktop are:
[Desktop Entry]
Type=XSession
Exec=/usr/bin/startplasma-x11
TryExec=/usr/bin/startplasma-x11
This causes some subtle issues:
1. GTK applications launched through global shortcuts can't access DBus (for example, Chromium is unable to launch the file manager if one clicks "Show download folder"). Qt apps seem unnaffected, though.
2. Both GTK and Qt applications launched through KRunner will have D-Bus access, but will have the / (root) as working directory (for example, launch Konsole through a global shortcut, PWD is ~; launch through KRunner, PWD is /)
3. Comparing the output of `export` ran on a Konsole launched through global shortcuts, and on a Konsole launched through KRunner, one notices the variable `DBUS_SESSION_BUS_ADDRESS` is missing on the first (presumably causing issue #1).
Once we change the Exec line of /usr/share/xsessions/plasma.desktop to
Exec=/usr/lib/plasma-dbus-run-session-if-needed /usr/bin/startplasma-x11
These issues go away (global shortcut GTK apps work as expected, KRunner applications have ~ as workdir). Plasma Wayland is already wrapped with `plasma-dbus-run-session-if-needed`, and doesn't have these specific issues. I haven't tested KDE Openbox, though.
EDIT: KDE/Openbox has the same issue, but can fixed in the same way (wrap with `/usr/lib/plasma-dbus-run-session-if-needed`)
Would the package maintainers mind making this change to the plasma-workspace package?