Skip to content

Instantly share code, notes, and snippets.

@tappoz
Last active December 3, 2018 11:31
Show Gist options
  • Save tappoz/9a18d2be5a3c874edf17fe406ada4244 to your computer and use it in GitHub Desktop.
Save tappoz/9a18d2be5a3c874edf17fe406ada4244 to your computer and use it in GitHub Desktop.
LXDE setup

Add SQL Operations Studio icon

This is a desktop launcher for SQL Operations Studio (https://github.com/Microsoft/sqlopsstudio).

Assuming the application is unpacket to $HOME/src/sqlops-linux-x64, then:

  • create the desktop launcher with: touch ~/.local/share/applications/sqlopsstudio.desktop;
  • the desktop launcher should contain:
[Desktop Entry]
Type=Application
Name=SQL Operations Studio
Exec=/home/<USERNAME_HERE>/src/sqlops-linux-x64/bin/sqlops
Icon=/home/<USERNAME_HERE>/src/sqlops-linux-x64/resources/app/resources/linux/code.png
Categories=Development

Environment variables like $HOME or bash shortcuts like ~ do not seem to work within the paths, so you have to tweak the file with your username otherwise put those files like the icon and the command in the expected places like $HOME/.icons or $HOME/.local/share/icons or /usr/share/ or /usr/local/share etc;

  • restart the LXDE panel with: lxpanelctl restart.

Add a generic desktop launcher e.g. firefox

Search for an existing example (where you can copy the categories):

find / -name "*.desktop" -type f 2>&1 | grep -v denied | grep firefox

/usr/share/xfce4/helpers/firefox.desktop
/usr/share/applications/firefox.desktop

More documentation: https://help.ubuntu.com/community/UnityLaunchersAndDesktopFiles

The local desktop launchers go in a place like:

touch ~/.local/share/applications/firefox.desktop

This is the content of the launcher for firefox:

[Desktop Entry]
Version=1.0
Name=Firefox
Exec=firefox --private-window %u
Icon=firefox
Terminal=false
Type=Application
Categories=GNOME;GTK;Network;WebBrowser;

Add the Chromium desktop launcher

touch ~/.local/share/applications/chromium-browser.desktop

Then add this content:

[Desktop Entry]
Version=1.0
Name=Chromium
Exec=chromium-browser --incognito --new-window %U
Icon=chromium-browser
Terminal=false
Type=Application
Categories=Network;WebBrowser;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment