-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove desktop file during uninstall
fix startup wm class
- Loading branch information
cube
committed
Jul 23, 2024
1 parent
d9a402a
commit 64b83c8
Showing
2 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#!/bin/sh | ||
# prerm script for APPLICATION_PACKAGE | ||
# | ||
# see: dh_installdeb(1) | ||
|
||
set -e | ||
|
||
# summary of how this script can be called: | ||
# * <prerm> `remove' | ||
# * <old-prerm> `upgrade' <new-version> | ||
# * <new-prerm> `failed-upgrade' <old-version> | ||
# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version> | ||
# * <deconfigured's-prerm> `deconfigure' `in-favour' | ||
# <package-being-installed> <version> `removing' | ||
# <conflicting-package> <version> | ||
# for details, see https://www.debian.org/doc/debian-policy/ or | ||
# the debian-policy package | ||
|
||
|
||
echo $0 called with $* | ||
|
||
package_type=deb | ||
#COMMON_SCRIPTS | ||
DESKTOP_SCRIPTS | ||
LAUNCHER_AS_SERVICE_SCRIPTS | ||
|
||
case "$1" in | ||
remove|upgrade|deconfigure) | ||
xdg-desktop-menu uninstall /opt/APPLICATION_PACKAGE/lib/APPLICATION_PACKAGE-APPLICATION_PACKAGE.desktop | ||
DESKTOP_COMMANDS_UNINSTALL | ||
LAUNCHER_AS_SERVICE_COMMANDS_UNINSTALL | ||
;; | ||
|
||
failed-upgrade) | ||
;; | ||
|
||
*) | ||
echo "prerm called with unknown argument \`$1'" >&2 | ||
exit 1 | ||
;; | ||
esac | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[Desktop Entry] | ||
Name=APPLICATION_NAME | ||
Comment=APPLICATION_DESCRIPTION | ||
Exec=APPLICATION_LAUNCHER | ||
Icon=APPLICATION_ICON | ||
Terminal=false | ||
Type=Application | ||
Categories=DEPLOY_BUNDLE_CATEGORY | ||
StartupWMClass=oolite-starter-MainFrame | ||
DESKTOP_MIMES |