kill tray in postrm of linux
This commit is contained in:
parent
7fb2464d84
commit
26a7f9dd46
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
pkill -f "rustdesk --tray" || true
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
purge)
|
purge)
|
||||||
rm -rf /root/.config/rustdesk || true
|
rm -rf /root/.config/rustdesk || true
|
||||||
|
@ -43,5 +43,6 @@ pre_remove() {
|
|||||||
post_remove() {
|
post_remove() {
|
||||||
rm /usr/share/applications/rustdesk.desktop || true
|
rm /usr/share/applications/rustdesk.desktop || true
|
||||||
rm /usr/share/applications/rustdesk-link.desktop || true
|
rm /usr/share/applications/rustdesk-link.desktop || true
|
||||||
|
pkill -f "rustdesk --tray" || true
|
||||||
update-desktop-database
|
update-desktop-database
|
||||||
}
|
}
|
||||||
|
@ -81,6 +81,7 @@ case "$1" in
|
|||||||
rm /usr/share/applications/rustdesk.desktop || true
|
rm /usr/share/applications/rustdesk.desktop || true
|
||||||
rm /usr/share/applications/rustdesk-link.desktop || true
|
rm /usr/share/applications/rustdesk-link.desktop || true
|
||||||
rm /usr/bin/rustdesk || true
|
rm /usr/bin/rustdesk || true
|
||||||
|
pkill -f "rustdesk --tray" || true
|
||||||
update-desktop-database
|
update-desktop-database
|
||||||
;;
|
;;
|
||||||
1)
|
1)
|
||||||
|
@ -81,6 +81,7 @@ case "$1" in
|
|||||||
rm /usr/share/applications/rustdesk.desktop || true
|
rm /usr/share/applications/rustdesk.desktop || true
|
||||||
rm /usr/share/applications/rustdesk-link.desktop || true
|
rm /usr/share/applications/rustdesk-link.desktop || true
|
||||||
rm /usr/bin/rustdesk || true
|
rm /usr/bin/rustdesk || true
|
||||||
|
pkill -f "rustdesk --tray" || true
|
||||||
update-desktop-database
|
update-desktop-database
|
||||||
;;
|
;;
|
||||||
1)
|
1)
|
||||||
|
@ -83,6 +83,7 @@ case "$1" in
|
|||||||
# for uninstall
|
# for uninstall
|
||||||
rm /usr/share/applications/rustdesk.desktop || true
|
rm /usr/share/applications/rustdesk.desktop || true
|
||||||
rm /usr/share/applications/rustdesk-link.desktop || true
|
rm /usr/share/applications/rustdesk-link.desktop || true
|
||||||
|
pkill -f "rustdesk --tray" || true
|
||||||
update-desktop-database
|
update-desktop-database
|
||||||
;;
|
;;
|
||||||
1)
|
1)
|
||||||
|
@ -84,6 +84,7 @@ case "$1" in
|
|||||||
# for uninstall
|
# for uninstall
|
||||||
rm /usr/share/applications/rustdesk.desktop || true
|
rm /usr/share/applications/rustdesk.desktop || true
|
||||||
rm /usr/share/applications/rustdesk-link.desktop || true
|
rm /usr/share/applications/rustdesk-link.desktop || true
|
||||||
|
pkill -f "rustdesk --tray" || true
|
||||||
update-desktop-database
|
update-desktop-database
|
||||||
;;
|
;;
|
||||||
1)
|
1)
|
||||||
|
Loading…
Reference in New Issue
Block a user