浏览代码

launcher script v2

Krzysztof Krysiński 1 月之前
父节点
当前提交
6b193854f8
共有 2 个文件被更改,包括 5 次插入1 次删除
  1. 1 1
      assets/flatpak/net.pixieditor.PixiEditor.desktop
  2. 4 0
      assets/flatpak/pixieditor.sh

+ 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 @@ "$@" @@