Add stand-alone desktop file

As request in #117
This commit is contained in:
Francesco Abbate 2021-03-22 20:20:58 +01:00
parent e160ed4e5e
commit 30cdc35df5
2 changed files with 12 additions and 12 deletions

View File

@ -150,18 +150,7 @@ lite_build_package_linux () {
strip "$bindir/lite" strip "$bindir/lite"
if [ -z "$portable" ]; then if [ -z "$portable" ]; then
mkdir -p "$pdir/share/applications" "$pdir/share/icons/hicolor/scalable/apps" mkdir -p "$pdir/share/applications" "$pdir/share/icons/hicolor/scalable/apps"
cat << EOF > "$pdir/share/applications/lite-xl.desktop" cp "dev-utils/lite-xl.desktop" "$pdir/share/applications"
[Desktop Entry]
Type=Application
Name=Lite XL
Comment=A lightweight text editor written in Lua
Exec=lite %F
Icon=lite-xl
Terminal=false
StartupNotify=false
Categories=Utility;TextEditor;Development;
MimeType=text/plain;
EOF
cp "dev-utils/lite.svg" "$pdir/share/icons/hicolor/scalable/apps/lite-xl.svg" cp "dev-utils/lite.svg" "$pdir/share/icons/hicolor/scalable/apps/lite-xl.svg"
fi fi
pushd ".package-build" pushd ".package-build"

11
dev-utils/lite-xl.desktop Normal file
View File

@ -0,0 +1,11 @@
[Desktop Entry]
Type=Application
Name=Lite XL
Comment=A lightweight text editor written in Lua
Exec=lite %F
Icon=lite-xl
Terminal=false
StartupNotify=false
Categories=Utility;TextEditor;Development;
MimeType=text/plain;