mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
- Create theide.desktop in upp user directory and copy theide.png too - Add an user xdg menu entry for theide - Add an uninstall script that t only removes theide xdg menu entry for now git-svn-id: svn://ultimatepp.org/upp/trunk@12782 f0d560ea-af0d-0410-9eb7-867de7ffcac7
23 lines
632 B
Bash
Executable file
23 lines
632 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
applications_list="theide.desktop"
|
|
|
|
if [ "$1" = "" -o \( "$1" != "install" -a "$1" != "uninstall" \) ]
|
|
then
|
|
echo "usage: $0 [install|uninstall]"
|
|
|
|
elif ! which xdg-desktop-menu
|
|
then
|
|
echo "$1 requires xdg-desktop-menu program to work properly"
|
|
|
|
elif [ "$1" = "install" ]
|
|
then
|
|
echo "xdg-desktop-menu install --mode user --novendor $applications_list"
|
|
xdg-desktop-menu install --mode user --novendor $applications_list
|
|
|
|
elif [ "$1" = "uninstall" ]
|
|
then
|
|
echo "xdg-desktop-menu uninstall --mode user --novendor $applications_list"
|
|
xdg-desktop-menu uninstall --mode user --novendor $applications_list
|
|
|
|
fi
|