Bug 388234 - flatpak-kde-runtime: Can't open file
Summary: flatpak-kde-runtime: Can't open file
Status: RESOLVED FIXED
Alias: None
Product: flatpak-platform-plugin
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Jan Grulich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-26 04:02 UTC by Peter Eszlari
Modified: 2018-01-10 17:12 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Eszlari 2017-12-26 04:02:22 UTC
https://github.com/flatpak/flatpak/issues/1276

I can't open a file in the following kde runtime based apps:

* io.mgba.mGBA (File -> Load ROM)
* org.fedoraproject.MediaWriter (Custom image)
* org.subsurface_divelog.Subsurface (File -> Open logbook)

It works in the following apps:

* net.mediaarea.MediaInfo (wxwidgets, gnome runtime)
* org.gnome.gedit (gnome runtime)
* org.videolan.VLC (freedesktop runtime)
* org.musescore.MuseScore (also kde runtime based, but working!)

Tested on Ubuntu 17.10 and Fedora 27.

I pretty sure, this must be kde runtime specfic, because when I compiled VLC against it instead of the freedesktop runtime, the same problem occurs.

(I filed it under "flatpak-platform-plugin", because there is no product "flatpak-kde-runtime".
Comment 1 Peter Eszlari 2018-01-08 04:33:30 UTC
I think, I found the cause. If you run:

$ flatpak run --command=sh org.subsurface_divelog.Subsurface

Then inside the sandbox:

$ rm /run/run/user/1000/flatpak-info
$ subsurface

Now the file open dialog pops up again normally.

So it seems this is caused by the backport of Qt's upstream flatpak portal support:

https://cgit.kde.org/flatpak-kde-runtime.git/commit/?id=d17671207dfb71cce86abf641df34f5edc7dbd2e
Comment 2 Jan Grulich 2018-01-10 17:12:56 UTC
Should be fixed with the next KDE runtime update.