liteide icon indicating copy to clipboard operation
liteide copied to clipboard

Add `desktop` file

Open dbadura opened this issue 4 years ago • 1 comments

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

dbadura avatar Mar 28 '21 12:03 dbadura

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

yurenchen000 avatar Jun 02 '21 17:06 yurenchen000