I would like to use runapp as my global launcher (with rofi). However, for XDG desktop portals to work, application scopes need to have a specific format:
app-<launcher>-<AppID>-<random>.scope
You use basename(argv[0]) as your AppID, when the standard requires that the desktop entry ID be used instead (this lets the portal know which org.freedesktop.Application to activate on button click).
Unfortunately, it is difficult to comply with the standard given that you wouldn't like to support running .desktop files directly. Two alternatives:
- Do a reverse lookup to find a desktop entry with matching
Exec=, and use that as AppID to name the scope
- Allow users to override the AppID name as a way of scripting around the problem.
Let me know if either of these would be reasonable.
I would like to use
runappas my global launcher (withrofi). However, for XDG desktop portals to work, application scopes need to have a specific format:You use
basename(argv[0])as yourAppID, when the standard requires that the desktop entry ID be used instead (this lets the portal know whichorg.freedesktop.Applicationto activate on button click).Unfortunately, it is difficult to comply with the standard given that you wouldn't like to support running
.desktopfiles directly. Two alternatives:Exec=, and use that asAppIDto name the scopeLet me know if either of these would be reasonable.