Skip to content

Allow relative service paths from /usr/bin

At the moment, to be able to take screenshots on Wayland, you need to specify X-KDE-DBUS-Restricted-Interfaces and the full path to the application in the Exec field in .desktop file.

Because of this, application developers need to generate this file dynamically using the full path for a typical installation and, for example, the relative path for the AppImage (which uses XDG Desktop Portal, but needs a relative path to the executable to create a package). It also doesn't integrate well with CPack (I need to use configure_file at the install step to handle generators overrides correctly).

And this is only required for KDE Plasma. It would be nice to unify the behavior. This PR allows relative paths for the Exec field for X-KDE-DBUS-Restricted-Interfaces if the application is in /usr/bin. This should not affect security, but will allow the use of a relative path that is allowed by standard.

Edited by Hennadii Chernyshchyk

Merge request reports