xdg-open uses diffrerent app in-sandbox and outside

Roman Evstifeev someuniquename at gmail.com
Wed May 15 14:07:31 UTC 2019


oh, btw the same happens when i open directory from slack - xdp does
not seem to call xdp-kde (its log is silent), and uses weird baobab
app:

XDP: Content type for file /home/u1/Downloads: inode/directory
XDP: launching org.gnome.baobab file:///home/u1/Downloads

On Wed, 15 May 2019 at 15:26, Roman Evstifeev <someuniquename at gmail.com> wrote:
>
> i have restarted xdg-desktop-portal with debug logging, as described
> here: https://community.kde.org/Guidelines_and_HOWTOs/Flatpak#Debugging_portals
>
> With this i can see that xdg-desktop-portal launches seamonkey for any
> url clicked, without even asking xdg-desktop-portal-kde:
>
> XDP: Content type for https://github.com/ uri https: x-scheme-handler/https
> XDP: launching seamonkey https://github.com/
>
> xdg-desktop-portal-kde log is empty.
>
> in contrast, when i open yaml file from the slack app, i see that
> xdg-desktop-portal-kde logs the request:
>
> xdp-kde-app-chooser: ChooseApplication called with parameters:
> xdp-kde-app-chooser:     handle:
> "/org/freedesktop/portal/desktop/request/1_206/t"
> xdp-kde-app-chooser:     app_id:  "com.slack.Slack"
> xdp-kde-app-chooser:     parent_window:  ""
> xdp-kde-app-chooser:     choices:  ("wine-extension-rgs",
> "wine-extension-lst", "wine-extension-pyw", "wine-extension-asm",
> "wine-extension-inl", "wine-extension-cod", "wine-extension-tli",
> "wine-extension-dsp", "wine-extension-s", "wine-extension-mdp",
> "wine-extension-def", "wine-extension-odl", "wine-extension-map",
> "wine-extension-sln", "wine-extension-dsw", "wine-extension-inc",
> "wine-extension-odh", "wine-extension-i", "wine-extension-tlh",
> "org.kde.kate", "wine-extension-txt", "okularApplication_txt",
> "writer", "org.gnome.gedit")
> xdp-kde-app-chooser:     options:  QMap(("content_type",
> QVariant(QString, "application/x-yaml"))("filename", QVariant(QString,
> "VoyageScheduleAPI.yaml"))("uri", QVariant(QString,
> "file:///home/u1/Downloads/VoyageScheduleAPI.yaml")))
>
> and lets me choose the app to use.
>
> On Sat, 4 May 2019 at 19:36, Roman Evstifeev <someuniquename at gmail.com> wrote:
> >
> > I am using xdg-desktop-portal-kde v5.15.3. Flatpak v 1.2.3 on openSUSE
> > Tumbleweed
> >
> > On Fri, 3 May 2019 at 12:10, Alexander Larsson <alexl at redhat.com> wrote:
> > >
> > > On Sun, Apr 14, 2019 at 2:06 PM Roman Evstifeev
> > > <someuniquename at gmail.com> wrote:
> > > >
> > > > Hi list!
> > > > I installed Slack app from falthub, and it opens http urls in the
> > > > SeaMonkey browser, instead of my systemwide-configured Firefox. And
> > > > this command indeeed launches SeaMonkey: "flatpak run -d
> > > > --command=xdg-open com.slack.Slack http://google.com"
> > > >
> > > > Is it possible to configure flatpak so that sanboxed app honor file
> > > > and url associations of the host?
> > >
> > > xdg-open in the flatpak uses the portal APIs to open things, because
> > > it doesn't really have full access to the host info/apps. However, the
> > > portal should be able to see the associations, so something must be
> > > going wrong here. What portal implementation are you running? i.e.
> > > xdg-desktop-portal-gtk? or are you using xdg-desktop-portal-kde?
> > >
> > >
> > > --
> > > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> > >  Alexander Larsson                                Red Hat, Inc
> > >        alexl at redhat.com         alexander.larsson at gmail.com


More information about the Flatpak mailing list