From c210fa4d612dee8d5ab4558783465d4a2bbddfd8 Mon Sep 17 00:00:00 2001 From: Benjamin Collet Date: Sun, 2 Jan 2022 17:15:44 +0100 Subject: [PATCH] Add desktop entry --- README.md | 6 ++++++ code.desktop | 18 ++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 code.desktop diff --git a/README.md b/README.md index 6b950d8..345c84b 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,12 @@ cd toolbox-vscode ln -s "$PWD/code.sh" ~/.local/bin/code ``` +Optionally, to set up a desktop entry + +``` +ln -s "$PWD/code.desktop" ~/.local/share/applications/code.desktop +``` + Usage ----- diff --git a/code.desktop b/code.desktop new file mode 100644 index 0000000..dad9bf4 --- /dev/null +++ b/code.desktop @@ -0,0 +1,18 @@ +[Desktop Entry] +Name=Visual Studio Code (Toolbox) +Comment=Code Editing. Redefined. +GenericName=Text Editor +Exec=/usr/bin/toolbox run ~/.local/bin/code --reuse-window %F +Icon=com.visualstudio.code +Type=Application +StartupNotify=true +StartupWMClass=Code +Categories=TextEditor;Development;IDE; +MimeType=text/plain;inode/directory;application/x-code-workspace; +Actions=new-empty-window; +Keywords=vscode; + +[Desktop Action new-empty-window] +Name=New Empty Window +Exec=/usr/bin/toolbox run ~/.local/bin/code --new-window %F +Icon=com.visualstudio.code