Skip to content

Commit ccc40e8

Browse files
fkobiTuxPaper
authored andcommitted
assets/linux/unregisterBiglyBT: use sh instead of bash & more
also removed the second `if` -- in the case that the file does not exist the command will silently fail so the behaviour stays the same
1 parent ae91bb3 commit ccc40e8

File tree

2 files changed

+8
-13
lines changed

2 files changed

+8
-13
lines changed

assets/linux/unregisterBiglyBT

-13
This file was deleted.

assets/linux/unregisterBiglyBT.sh

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/sh
2+
# This file removed the .desktop file registration from your Desktop Environment
3+
4+
[ -x "$(command -v xdg-desktop-menu)" ] && xdg-desktop-menu uninstall --novendor biglybt.desktop
5+
# if not executed as root will probably silently fail
6+
rm -f "/usr/share/applications/biglybt.desktop"
7+
8+
exit 0

0 commit comments

Comments
 (0)