-
-
Notifications
You must be signed in to change notification settings - Fork 390
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
Can't open file in certain kde runtime based apps #1276
Comments
I can't reproduce this in Subsurface. Was there a runtime update in the meantime? |
I think, I found the cause. If you run:
Then inside the sandbox:
Now the file open dialog pops up again normally. KDE/flatpak-kde-runtime@d176712
|
Should be fixed with the next KDE runtime update. |
With the updated runtime all apps I tested worked, except one: |
@eszlari it should have been fixed with the KDE runtime update. You might want to notify @MartinBriza if that's the case here: |
Maybe org.fedoraproject.MediaWriter needs to be rebuild against the updated runtime, I don't know. But since the trick to |
Can you please now verify with latest runtime? There should be an update with a fix which hopefully fixes this issue. |
It works now. |
@grulja After the rebuild of the kde runtime (flatpak/freedesktop-sdk-base#15), it seems, this bug is back again in a specific circumstance: Running https://github.com/flathub/org.kde.krita under KDE. Other Qt apps are not affected (as far as I tested) and under GNOME there's no problem. |
Hello, I am still suffering this issue with while trying to prepare package for my application and the workaround still works for me. Could you please reopen this? |
Can you share your application? Which desktop do you use? |
I am running Package is here https://transfer.sh/NjxWC/space.fips.Fips.flatpak |
It works for me. When I start it, it immediately opens a dialog. |
What flatpak version do you use? In my distro there is |
I use flatpak-0.99.3 at this moment, which will be future 1.0 release. Previously we had flatpak-0.11.x in Fedora and I'm pretty sure it worked with this version as well. |
Actually, this is more related to xdg-desktop-portal and backend implementation of portals. What versions of xdg-desktop-portal and backend (xdg-desktop-portals-kde or xdg-desktop-portal-gtk) do you have? |
|
Would be interesting to see DBus communication. Can you run "dbus-monitor --session" in a terminal and open your app? Then attach output from dbus-monitor here. |
```
method call time=1532703210.426453 sender=:1.338 ->
destination=org.freedesktop.portal.Desktop serial=28
path=/org/freedesktop/portal/desktop;
interface=org.freedesktop.portal.FileChooser; member=OpenFile
string "x11:71303174"
string "Open FITS file in current window"
array [
dict entry(
string "filters"
variant array [
struct {
string "All Files "
array [
struct {
uint32 0
string "*"
}
]
}
]
)
dict entry(
string "handle_token"
variant string "qt1262178897"
)
dict entry(
string "modal"
variant boolean true
)
dict entry(
string "multiple"
variant boolean false
)
]
error time=1532703210.426817 sender=:1.103 -> destination=:1.338
error_name=org.freedesktop.DBus.Error.UnknownMethod reply_serial=28
string "No such interface 'org.freedesktop.portal.FileChooser' on object
at path /org/freedesktop/portal/desktop"
```
2018-07-27 12:42 GMT+03:00 Jan Grulich <notifications@github.com>:
… Would be interesting to see DBus communication. Can you run "dbus-monitor
--session" in a terminal and open your app? Then attach output from
dbus-monitor here.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1276 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAJj0_T-2MaNEosWuZOGLx0Vx_11sCxZks5uKuCCgaJpZM4RLzcH>
.
--
With best regards,
Matwey V. Kornilov
|
It looks like xdg-desktop-portal is not running, can you verify that? It should be started automatically, but you might have it installed in a wrong location and given that, it fails to autostart. |
There is one process running.
```
LANG=c ps aux | grep xdg-desktop-portal
matwey 393 0.0 0.0 634428 3120 ? Ssl Jul24 0:00
/usr/lib/xdg-desktop-portal
```
```
systemctl --user status xdg-desktop-portal.service
● xdg-desktop-portal.service - Portal service
Loaded: loaded (/usr/lib/systemd/user/xdg-desktop-portal.service;
static; vendor preset: enabled)
Active: active (running) since Tue 2018-07-24 15:46:26 MSK; 3 days ago
Main PID: 393 (xdg-desktop-por)
CGroup: /user.slice/user-1000.slice/user@1000.service
/xdg-desktop-portal.service
└─393 /usr/lib/xdg-desktop-portal
июл 24 15:46:26 alpha systemd[2474]: Starting Portal service...
июл 24 15:46:26 alpha systemd[2474]: Started Portal service.
```
2018-07-27 18:28 GMT+03:00 Jan Grulich <notifications@github.com>:
… It looks like xdg-desktop-portal is not running, can you verify that? It
should be started automatically, but you might have it installed in a wrong
location and given that, it fails to autostart.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1276 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAJj0wQCReglMbBZh8MMWL2BtGq7WcVwks5uKzGfgaJpZM4RLzcH>
.
--
With best regards,
Matwey V. Kornilov
|
Hi, I've restarted my user systemd session, and now the dialog is opened. I cannot reproduce the issue anymore. Sorry for disturbing. |
Its not a 'trick', its just breaking the sandbox plumbing. But the fact that it is possible is a bug. |
I can't open a file in the following kde runtime based apps:
It works in the following apps:
Tested on Ubuntu 17.10 and Fedora 27.
The text was updated successfully, but these errors were encountered: