void-packages/srcpkgs/vscode/patches/fix_dir.patch
2020-06-12 21:11:52 +02:00

47 lines
1.5 KiB
Diff

diff --git a/resources/linux/bin/code.sh b/resources/linux/bin/code.sh
index 516c05e4ee08..bddc6f0cef22 100755
--- a/resources/linux/bin/code.sh
+++ b/resources/linux/bin/code.sh
@@ -36,7 +36,7 @@ else
VSCODE_PATH="$(dirname $(readlink -f $0))/.."
else
# else use the standard install location
- VSCODE_PATH="/usr/share/@@NAME@@"
+ VSCODE_PATH="/usr/lib/@@NAME@@"
fi
fi
diff --git a/resources/linux/code-url-handler.desktop b/resources/linux/code-url-handler.desktop
index b85525fbd042..dc7617051b95 100644
--- a/resources/linux/code-url-handler.desktop
+++ b/resources/linux/code-url-handler.desktop
@@ -2,7 +2,7 @@
Name=@@NAME_LONG@@ - URL Handler
Comment=Code Editing. Redefined.
GenericName=Text Editor
-Exec=@@EXEC@@ --no-sandbox --open-url %U
+Exec=/usr/lib/@@NAME@@/@@NAME@@ --no-sandbox --open-url %U
Icon=@@ICON@@
Type=Application
NoDisplay=true
diff --git a/resources/linux/code.desktop b/resources/linux/code.desktop
index b975e1094a2c..a094cc36e810 100644
--- a/resources/linux/code.desktop
+++ b/resources/linux/code.desktop
@@ -2,7 +2,7 @@
Name=@@NAME_LONG@@
Comment=Code Editing. Redefined.
GenericName=Text Editor
-Exec=@@EXEC@@ --no-sandbox --unity-launch %F
+Exec=/usr/lib/@@NAME@@/@@NAME@@ --no-sandbox --unity-launch %F
Icon=@@ICON@@
Type=Application
StartupNotify=false
@@ -14,5 +14,5 @@ Keywords=vscode;
[Desktop Action new-empty-window]
Name=New Empty Window
-Exec=@@EXEC@@ --no-sandbox --new-window %F
+Exec=/usr/lib/@@NAME@@/@@NAME@@ --no-sandbox --new-window %F
Icon=@@ICON@@