liteide
liteide copied to clipboard
Add `desktop` file
It would be nice to have option in LiteIDE to create desktop files. It would simplify launching the IDE.
What operating system and processor architecture are you using(go env)?
Ubuntu with Gnome
a bash script create_desktop.sh may do the work
USAGE: create_desktop.sh [liteIDE_DIR]
// liteIDE_DIR should be absolute path // if desktop existed, will ask for replace
#!bin/bash
LITEIDE_DIR=${1:-/opt/liteide}
echo "== create $LITEIDE_DIR/liteIDE.desktop"
cp -i <(cat <<EOF
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=liteIDE
Exec=$LITEIDE_DIR/bin/liteide
Icon=$LITEIDE_DIR/share/liteide/liteapp/qrc/default/liteapp/images/liteide64.png
Type=Application
Comment=liteIDE
GenericName=liteIDE
Categories=Development;
Terminal=false
X-MultipleArgs=false
StartupNotify=true
EOF
) $LITEIDE_DIR/liteIDE.desktop
LNK=/usr/share/applications/liteIDE.desktop
echo "== create $LNK"
sudo ln -si $LITEIDE_DIR/liteIDE.desktop $LNK