[gnome-screenshot/wip/exalm/i] flatpak: Run with --interactive by default




commit dfcff1507869af629ee62a147a9679adc2c3d36b
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Tue Feb 16 04:01:26 2021 +0500

    flatpak: Run with --interactive by default
    
    Add a wrapper script to run gnome-screenshot --interactive. Ideally we
    would be able to just specify it in `command`, but that's not possible.
    
    Fixes https://gitlab.gnome.org/GNOME/gnome-screenshot/-/issues/148

 org.gnome.Screenshot.json | 22 ++++++++++++++++++----
 1 file changed, 18 insertions(+), 4 deletions(-)
---
diff --git a/org.gnome.Screenshot.json b/org.gnome.Screenshot.json
index c560f6b..bf68b4d 100644
--- a/org.gnome.Screenshot.json
+++ b/org.gnome.Screenshot.json
@@ -3,10 +3,7 @@
     "runtime" : "org.gnome.Platform",
     "runtime-version" : "master",
     "sdk" : "org.gnome.Sdk",
-    "command" : "gnome-screenshot",
-    "x-run-args" : [
-        "--interactive"
-    ],
+    "command" : "gnome-screenshot-interactive",
     "finish-args" : [
         "--share=ipc",
         "--socket=x11",
@@ -45,6 +42,23 @@
                 }
             ]
         },
+        {
+            "name" : "gnome-screenshot-interactive",
+            "buildsystem" : "simple",
+            "build-commands" : [
+                "mkdir -p /app/bin/",
+                "install -m755 -pD gnome-screenshot-interactive /app/bin/gnome-screenshot-interactive"
+            ],
+            "sources" : [
+                {
+                    "type" : "script",
+                    "commands" : [
+                        "gnome-screenshot -i"
+                    ],
+                    "dest-filename" : "gnome-screenshot-interactive"
+                }
+            ]
+        },
         {
             "name" : "gnome-screenshot",
             "buildsystem" : "meson",


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