Skip to content

Commit

Permalink
Add desktop entry
Browse files Browse the repository at this point in the history
  • Loading branch information
mrBen committed Mar 13, 2022
1 parent 39e3881 commit c210fa4
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
-----

Expand Down
18 changes: 18 additions & 0 deletions code.desktop
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit c210fa4

Please sign in to comment.