Use wrapper-script to launch jacktrip from .desktop
authorIOhannes m zmölnig (Debian/GNU) <umlaeute@debian.org>
Fri, 27 Jan 2023 09:48:30 +0000 (10:48 +0100)
committerIOhannes m zmölnig (Debian/GNU) <umlaeute@debian.org>
Fri, 27 Jan 2023 09:48:47 +0000 (10:48 +0100)
debian/jacktrip-gui-launcher [new file with mode: 0755]
debian/jacktrip-gui.install
debian/patches/gui-launcher.patch [new file with mode: 0644]
debian/patches/series [new file with mode: 0644]

diff --git a/debian/jacktrip-gui-launcher b/debian/jacktrip-gui-launcher
new file mode 100755 (executable)
index 0000000..09aab17
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/sh
+if [ -z "$1" ]; then
+ exec /usr/bin/jacktrip-gui
+else
+ exec /usr/bin/jacktrip-gui --gui --deeplink "$1"
+fi
+
index 1b91047ac96bd8844a56f542e5b8f7c2216cecde..3726d33bd3139f484f913135208da8c83590e5f7 100644 (file)
@@ -1 +1,2 @@
 usr/
+debian/jacktrip-gui-launcher   usr/share/jacktrip/
diff --git a/debian/patches/gui-launcher.patch b/debian/patches/gui-launcher.patch
new file mode 100644 (file)
index 0000000..9e7d7ce
--- /dev/null
@@ -0,0 +1,18 @@
+Description: Use wrapper-script to launch jacktrip-gui from .desktop
+Author: IOhannes m zmölnig
+Origin: Debian
+Bug: https://github.com/jacktrip/jacktrip/issues/802
+Last-Update: 2023-01-27
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- jacktrip.orig/linux/org.jacktrip.JackTrip.desktop.in
++++ jacktrip/linux/org.jacktrip.JackTrip.desktop.in
+@@ -3,7 +3,7 @@
+ Name=JackTrip@name_suffix@
+ Comment=Network Music Performance over the Internet
+ Comment[fr]=Performance de musique en réseau sur internet
+-Exec=/bin/bash -c "if [ -z ""\$"1" ]; then jacktrip; else jacktrip --gui --deeplink ""\$"1"; fi" /bin/bash %u
++Exec=/usr/share/jacktrip/jacktrip-gui-launcher %u
+ Icon=@icon@
+ Terminal=false
+ StartupWMClass=@wmclass@
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644 (file)
index 0000000..0d8f1ee
--- /dev/null
@@ -0,0 +1 @@
+gui-launcher.patch