Skip to content

Scope naming breaks XDG portals #4

Description

@waltmck

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions