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

App chooser dialog always shows when opening URL #306

Closed
eunakria opened this issue Mar 2, 2019 · 6 comments
Closed

App chooser dialog always shows when opening URL #306

eunakria opened this issue Mar 2, 2019 · 6 comments

Comments

@eunakria
Copy link

eunakria commented Mar 2, 2019

Whenever I try to open a URL from a Flatpak, I'm always prompted to select an application and have to manually specify Firefox.

Here's what I tried:

  • busctl --user call org.freedesktop.portal.Desktop /org/freedesktop/portal/desktop org.freedesktop.portal.OpenURI OpenURI 'ssa{sv}' '' 'https://google.com/' 0, which gives me this prompt:
    image
  • journalctl --user -u xdg-desktop-portal, which has no logs of particular interest. Just in case, I'll attach them anyway.

Logs:

$ journalctl --user -u xdg-desktop-portal
-- Logs begin at Wed 2019-02-06 17:40:29 EST, end at Fri 2019-03-01 22:04:30 EST. --
Feb 06 18:13:48 anchor systemd[486]: Starting Portal service...
Feb 06 18:13:48 anchor systemd[486]: Started Portal service.
Feb 06 18:13:48 anchor xdg-desktop-por[3929]: Unable to retrieve info for 'x-scheme-handler/https' in the desktop-used-apps table of the permission store: No entry for x-scheme-handler/https
Feb 06 21:53:29 anchor systemd[486]: Stopping Portal service...
Feb 06 21:53:29 anchor systemd[486]: xdg-desktop-portal.service: Main process exited, code=killed, status=15/TERM
Feb 06 21:53:29 anchor systemd[486]: xdg-desktop-portal.service: Succeeded.
Feb 06 21:53:29 anchor systemd[486]: Stopped Portal service.
-- Reboot --
Feb 07 15:34:09 anchor systemd[530]: Starting Portal service...
Feb 07 15:34:10 anchor systemd[530]: Started Portal service.
Feb 07 15:34:10 anchor xdg-desktop-por[7238]: Unable to retrieve info for 'x-scheme-handler/https' in the desktop-used-apps table of the permission store: No entry for x-scheme-handler/https
Feb 09 16:08:02 Anchor xdg-desktop-portal[7238]: No protocol specified
Feb 09 16:08:02 Anchor xdg-desktop-portal[7238]: Unable to init server: Could not connect: Connection refused
Feb 09 16:08:02 Anchor xdg-desktop-portal[7238]: Error: cannot open display: :0
Feb 09 16:08:26 Anchor xdg-desktop-portal[7238]: No protocol specified
Feb 09 16:08:26 Anchor xdg-desktop-portal[7238]: Unable to init server: Could not connect: Connection refused
Feb 09 16:08:26 Anchor xdg-desktop-portal[7238]: Error: cannot open display: :0
Feb 10 18:03:21 Anchor systemd[530]: Stopping Portal service...
Feb 10 18:03:21 Anchor systemd[530]: xdg-desktop-portal.service: Main process exited, code=killed, status=15/TERM
Feb 10 18:03:21 Anchor systemd[530]: xdg-desktop-portal.service: Succeeded.
Feb 10 18:03:21 Anchor systemd[530]: Stopped Portal service.
-- Reboot --
Feb 10 18:23:09 Anchor systemd[577]: Starting Portal service...
Feb 10 18:23:09 Anchor systemd[577]: Started Portal service.
-- Reboot --
Feb 12 15:20:44 Anchor systemd[591]: Starting Portal service...
Feb 12 15:20:44 Anchor systemd[591]: Started Portal service.
Feb 13 17:57:56 Anchor systemd[591]: Stopping Portal service...
Feb 13 17:57:56 Anchor systemd[591]: xdg-desktop-portal.service: Main process exited, code=killed, status=15/TERM
Feb 13 17:57:56 Anchor systemd[591]: xdg-desktop-portal.service: Succeeded.
Feb 13 17:57:56 Anchor systemd[591]: Stopped Portal service.
-- Reboot --
Feb 13 18:19:17 Anchor systemd[585]: Starting Portal service...
Feb 13 18:19:17 Anchor systemd[585]: Started Portal service.
-- Reboot --
Feb 15 22:38:43 Anchor systemd[611]: Starting Portal service...
Feb 15 22:38:43 Anchor systemd[611]: Started Portal service.
Feb 17 09:21:47 Anchor systemd[611]: Stopping Portal service...
Feb 17 09:21:47 Anchor systemd[611]: xdg-desktop-portal.service: Main process exited, code=killed, status=15/TERM
Feb 17 09:21:47 Anchor systemd[611]: xdg-desktop-portal.service: Succeeded.
Feb 17 09:21:47 Anchor systemd[611]: Stopped Portal service.
-- Reboot --
Feb 17 11:27:59 Anchor systemd[606]: Starting Portal service...
Feb 17 11:27:59 Anchor systemd[606]: Started Portal service.
Feb 18 16:55:23 Anchor systemd[606]: Stopping Portal service...
Feb 18 16:55:23 Anchor systemd[606]: xdg-desktop-portal.service: Main process exited, code=killed, status=15/TERM
Feb 18 16:55:23 Anchor systemd[606]: xdg-desktop-portal.service: Succeeded.
Feb 18 16:55:23 Anchor systemd[606]: Stopped Portal service.
-- Reboot --
Feb 18 20:58:20 Anchor systemd[595]: Starting Portal service...
Feb 18 20:58:21 Anchor systemd[595]: Started Portal service.
Feb 20 19:32:45 Anchor systemd[595]: Stopping Portal service...
Feb 20 19:32:45 Anchor systemd[595]: xdg-desktop-portal.service: Main process exited, code=killed, status=15/TERM
Feb 20 19:32:45 Anchor systemd[595]: xdg-desktop-portal.service: Succeeded.
Feb 20 19:32:45 Anchor systemd[595]: Stopped Portal service.
-- Reboot --
Feb 21 19:48:01 Anchor systemd[604]: Starting Portal service...
Feb 21 19:48:01 Anchor systemd[604]: Started Portal service.
Feb 22 19:12:13 Anchor systemd[604]: Stopping Portal service...
Feb 22 19:12:13 Anchor systemd[604]: xdg-desktop-portal.service: Main process exited, code=killed, status=15/TERM
Feb 22 19:12:13 Anchor systemd[604]: xdg-desktop-portal.service: Succeeded.
Feb 22 19:12:13 Anchor systemd[604]: Stopped Portal service.
-- Reboot --
Feb 22 20:17:02 Anchor systemd[601]: Starting Portal service...
Feb 22 20:17:02 Anchor systemd[601]: Started Portal service.
Feb 23 16:00:53 Anchor systemd[601]: Stopping Portal service...
Feb 23 16:00:53 Anchor systemd[601]: xdg-desktop-portal.service: Main process exited, code=killed, status=15/TERM
Feb 23 16:00:53 Anchor systemd[601]: xdg-desktop-portal.service: Succeeded.
Feb 23 16:00:53 Anchor systemd[601]: Stopped Portal service.
-- Reboot --
Feb 23 18:44:46 Anchor systemd[573]: Starting Portal service...
Feb 23 18:44:46 Anchor systemd[573]: Started Portal service.
Feb 24 08:29:44 Anchor systemd[573]: Stopping Portal service...
Feb 24 08:29:44 Anchor systemd[573]: xdg-desktop-portal.service: Main process exited, code=killed, status=15/TERM
Feb 24 08:29:44 Anchor systemd[573]: xdg-desktop-portal.service: Succeeded.
Feb 24 08:29:44 Anchor systemd[573]: Stopped Portal service.
-- Reboot --
Feb 24 10:47:29 Anchor systemd[583]: Starting Portal service...
Feb 24 10:47:29 Anchor systemd[583]: Started Portal service.
Feb 27 19:47:06 Anchor systemd[583]: Stopping Portal service...
Feb 27 19:47:06 Anchor systemd[583]: xdg-desktop-portal.service: Main process exited, code=killed, status=15/TERM
Feb 27 19:47:06 Anchor systemd[583]: xdg-desktop-portal.service: Succeeded.
Feb 27 19:47:06 Anchor systemd[583]: Stopped Portal service.
-- Reboot --
Feb 28 22:44:22 Anchor systemd[591]: Starting Portal service...
Feb 28 22:44:22 Anchor systemd[591]: Started Portal service.
Mar 01 08:00:43 Anchor systemd[591]: Stopping Portal service...
Mar 01 08:00:43 Anchor systemd[591]: xdg-desktop-portal.service: Main process exited, code=killed, status=15/TERM
Mar 01 08:00:43 Anchor systemd[591]: xdg-desktop-portal.service: Succeeded.
Mar 01 08:00:43 Anchor systemd[591]: Stopped Portal service.
-- Reboot --
Mar 01 18:49:46 Anchor systemd[624]: Starting Portal service...
Mar 01 18:49:47 Anchor systemd[624]: Started Portal service.

I am on Arch Linux and running Flatpak 1.2.3-1.

@TingPing
Copy link
Member

TingPing commented Mar 2, 2019

Is your firefox install the normal Arch package?

@grulja
Copy link
Contributor

grulja commented Apr 29, 2019

Possible solution #313.

@Saroufim
Copy link

Similar issue: When using Lutris to launch Steam games, the App Choose always appears and there is no way to just save the choice for always using com.valvesoftware.Steam for steam://.

@Erick555
Copy link

Erick555 commented Sep 17, 2019

I have the opposite issue, it doesn't show App chooser dialog but launch default browser instead

busctl --user call org.freedesktop.portal.Desktop /org/freedesktop/portal/desktop org.freedesktop.portal.OpenURI OpenURI 'ssa{sv}' '' 'https://google.com/' 0

Someone reported same issue in #330 . Was this behavior changed or is there some switch for that?

Arch Linux, xdg-desktop-portal 1.4.2-1, KDE Plasma 5.16

@Erick555
Copy link

Erick555 commented Sep 17, 2019

It seems is App chooser dialog not shown for http/https schemes: https://github.com/flatpak/xdg-desktop-portal/wiki/The-Permission-Store#the-desktop-used-apps-table

@matthiasclasen
Copy link
Contributor

matthiasclasen commented Oct 27, 2019

There is no switch for this. We special case http and https uri schemes, and launch the default app directly

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

6 participants