Skip to content

Instantly share code, notes, and snippets.

@infosec-intern
Last active June 24, 2024 17:26
Show Gist options
  • Save infosec-intern/542d39e16f46ff472803a42bc50f3b4f to your computer and use it in GitHub Desktop.
Save infosec-intern/542d39e16f46ff472803a42bc50f3b4f to your computer and use it in GitHub Desktop.
A simple .desktop file for Visual Studio Code
[Desktop Entry]
Name=Visual Studio Code
Comment=Programming Text Editor
Exec=/usr/local/src/VSCode-linux-x64/code
Icon=/usr/local/src/VSCode-linux-x64/resources/app/resources/linux/code.png
Terminal=false
Type=Application
Categories=Programming;
@telenieko
Copy link

desktop-file-validate vscode.desktop 
vscode.desktop: error: value "Programming;" for key "Categories" in group "Desktop Entry" contains an unregistered value "Programming"; values extending the format should start with "X-"
vscode.desktop: hint: value "Programming;" for key "Categories" in group "Desktop Entry" does not contain a registered main category; application might only show up in a "catch-all" section of the application menu

You can change it for "Development", see the specification

It will pass validation! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment