Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default applications portal? #126

Closed
jhenstridge opened this issue Oct 23, 2017 · 2 comments
Closed

Default applications portal? #126

jhenstridge opened this issue Oct 23, 2017 · 2 comments

Comments

@jhenstridge
Copy link
Contributor

It is fairly common for a web browser or email client to want some way to set themselves as the default application for the user. It is also pretty clear that a sandboxed application shouldn't be able to unilaterally change the user's default application settings.

Would it make sense to add a portal interface for this? Perhaps something like this:

  • IsDefault(mime_type, desktop_id) -> bool
    Returns true if the given desktop ID is the default for the given mime type. The portal may return false if the sandboxed app does not control the given desktop ID.

  • SetDefault(mime_type, desktop_id)
    After confirming with the change with the user, set the given desktop ID as default handler for the given mime type. The portal will refuse to make the change if the sandboxed app does not control the given desktop ID. The portal may remember if the user's decision if they reject the change (to handle badly behaved apps that repeatedly try to change the settings).

It might need a bit more nuance though: a browser will probably want to set a number of x-scheme-hanlder/* defaults (http, https, etc), but the user should only be prompted once.

@matthiasclasen
Copy link
Contributor

I don't think so. it is generally just annoying if applications are pushy about this. They should announce what mime types they support, and leave choice of default handlers to the desktop and the user.

@TingPing
Copy link
Member

I think the Windows 10 solution to this is actually decent, instead of allowing applications constantly request it the OS will, at install time of a new handler, ask if you want it to be default.

agx pushed a commit to agx/xdg-desktop-portal that referenced this issue Dec 20, 2023
Update Brazilian Portuguese translation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants