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

--file-forwarding does not work with org.freedesktop.Application.Open #4408

Open
chergert opened this issue Sep 11, 2021 · 0 comments
Open

Comments

@chergert
Copy link
Contributor

When using --file-forwarding to open files from command line arguments the target application will get a document that has been accessed via the document portal.

However, if the application is launched using --gapplication-service, then GLib-based applications (such as Nautilus) will use either the org.freedesktop.Application or org.gtk.Application D-Bus interface to call Open(). Files opened this way are not forwarded via the document portal and therefore fail to open.

This was discovered when tracking down https://gitlab.gnome.org/GNOME/gnome-text-editor/-/issues/143 for which the current workaround is to just remove DBusActivatable=true in the .desktop file.

gnomesysadmins pushed a commit to GNOME/gnome-text-editor that referenced this issue Sep 11, 2021
When DBusActivatable=true, applications might spawn the application as a
D-Bus service, then call and RPC to open the file. That breaks the
--file-forwarding in Flatpak.

For now, just disable it so we get the right thing.

See also:

  flatpak/flatpak#4408
  https://gitlab.gnome.org/GNOME/gnome-text-editor/-/issues/143
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

1 participant