Ver código fonte

launcher script v2

Krzysztof Krysiński 2 meses atrás
pai
commit
6b193854f8

+ 1 - 1
assets/flatpak/net.pixieditor.PixiEditor.desktop

@@ -2,7 +2,7 @@
 Name=PixiEditor
 Name=PixiEditor
 Comment=PixiEditor is all-in-one solution for 2D image editing.
 Comment=PixiEditor is all-in-one solution for 2D image editing.
 Icon=net.pixieditor.PixiEditor
 Icon=net.pixieditor.PixiEditor
-Exec=PixiEditor.Desktop %u
+Exec=pixieditor.sh %u
 StartupWMClass=pixieditor
 StartupWMClass=pixieditor
 Terminal=false
 Terminal=false
 Type=Application
 Type=Application

+ 4 - 0
assets/flatpak/pixieditor.sh

@@ -0,0 +1,4 @@
+#!/usr/bin/env bash
+# Find flatpak even if PATH is not set properly
+FLATPAK_BIN="$(command -v flatpak || echo /usr/bin/flatpak)"
+exec "$FLATPAK_BIN" run --file-forwarding net.pixieditor.PixiEditor @@ "$@" @@