]> granicus.if.org Git - handbrake/commitdiff
flatpak: use freedesktop platform instead gnome
authorJohn Stebbins <jstebbins.hb@gmail.com>
Tue, 19 Jun 2018 23:04:13 +0000 (16:04 -0700)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Tue, 19 Jun 2018 23:04:13 +0000 (16:04 -0700)
It's smaller

pkg/linux/flatpak/fr.handbrake.ghb.json
scripts/create_flatpak_manifest.py

index 561843e42cf9609cab972dd833131d6adf041aa6..147e66c6357a959d496c62b673c41d992e116d18 100644 (file)
@@ -1,8 +1,8 @@
 {
     "app-id": "fr.handbrake.ghb",
-    "runtime": "org.gnome.Platform",
-    "runtime-version": "3.28",
-    "sdk": "org.gnome.Sdk",
+    "runtime": "org.freedesktop.Platform",
+    "runtime-version": "1.6",
+    "sdk": "org.freedesktop.Sdk",
     "command": "ghb",
     "finish-args": [
         "--share=ipc", "--socket=x11",
@@ -10,7 +10,6 @@
         "--filesystem=xdg-run/dconf",
         "--filesystem=~/.config/dconf:ro",
         "--talk-name=ca.desrt.dconf",
-        "--talk-name=org.freedesktop.Notifications",
         "--env=DCONF_USER_CONFIG_DIR=.config/dconf",
         "--filesystem=host"
     ],
index c8e6ac41f3e12f3200176b949ff31ca97201a1fd..59288dcd9c71f964f01b2a0fb65a2acf979d5a36 100755 (executable)
@@ -55,7 +55,8 @@ class FlatpakManifest:
             self.modules[0]              = self.hbmodule
             self.hbmodule["sources"]     = self.sources
 
-        self.manifest["runtime-version"] = runtime
+        if runtime != None:
+            self.manifest["runtime-version"] = runtime
 
         handbrake_found = False
         for key, value in source_list.items():
@@ -110,7 +111,7 @@ if __name__ == "__main__":
 
     source_list = OrderedDict()
     current_source = None
-    runtime = "3.28"
+    runtime = None
     for opt, arg in opts:
         if opt in ("-h", "--help"):
             usage()