[gnome-text-editor] desktop: work around DBusActivatable issue



commit 7b7bdc21a2fcca2eda3ef5075a86bf86460bdac5
Author: Christian Hergert <chergert redhat com>
Date:   Sat Sep 11 13:26:40 2021 -0700

    desktop: work around DBusActivatable issue
    
    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:
    
      https://github.com/flatpak/flatpak/issues/4408
      https://gitlab.gnome.org/GNOME/gnome-text-editor/-/issues/143

 data/org.gnome.TextEditor.desktop.in.in | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/data/org.gnome.TextEditor.desktop.in.in b/data/org.gnome.TextEditor.desktop.in.in
index 921b471..107555c 100644
--- a/data/org.gnome.TextEditor.desktop.in.in
+++ b/data/org.gnome.TextEditor.desktop.in.in
@@ -1,6 +1,9 @@
 [Desktop Entry]
 Categories=GNOME;GTK;Utility;TextEditor;
-DBusActivatable=true
+# Disable DBusActivatable as it will cause URIs to be opened without
+# going through the documents portal.
+# See https://github.com/flatpak/flatpak/issues/4408 for more information.
+DBusActivatable=false
 Exec=gnome-text-editor %U
 MimeType=text/plain;
 Name=Text Editor


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]