kill tray in postrm of linux

This commit is contained in:
hzhou 2024-04-01 16:36:34 +08:00
parent 7fb2464d84
commit 26a7f9dd46
6 changed files with 7 additions and 0 deletions

View File

@ -2,6 +2,8 @@
set -e
pkill -f "rustdesk --tray" || true
case $1 in
purge)
rm -rf /root/.config/rustdesk || true

View File

@ -43,5 +43,6 @@ pre_remove() {
post_remove() {
rm /usr/share/applications/rustdesk.desktop || true
rm /usr/share/applications/rustdesk-link.desktop || true
pkill -f "rustdesk --tray" || true
update-desktop-database
}

View File

@ -81,6 +81,7 @@ case "$1" in
rm /usr/share/applications/rustdesk.desktop || true
rm /usr/share/applications/rustdesk-link.desktop || true
rm /usr/bin/rustdesk || true
pkill -f "rustdesk --tray" || true
update-desktop-database
;;
1)

View File

@ -81,6 +81,7 @@ case "$1" in
rm /usr/share/applications/rustdesk.desktop || true
rm /usr/share/applications/rustdesk-link.desktop || true
rm /usr/bin/rustdesk || true
pkill -f "rustdesk --tray" || true
update-desktop-database
;;
1)

View File

@ -83,6 +83,7 @@ case "$1" in
# for uninstall
rm /usr/share/applications/rustdesk.desktop || true
rm /usr/share/applications/rustdesk-link.desktop || true
pkill -f "rustdesk --tray" || true
update-desktop-database
;;
1)

View File

@ -84,6 +84,7 @@ case "$1" in
# for uninstall
rm /usr/share/applications/rustdesk.desktop || true
rm /usr/share/applications/rustdesk-link.desktop || true
pkill -f "rustdesk --tray" || true
update-desktop-database
;;
1)