|
Revision 994, 0.9 KB
(checked in by kris, 12 months ago)
|
|
Fixed up the location of the bmpx.mo files to allow the translations to
load properly
|
-
Property svn:executable set to
*
|
| Line | |
|---|
| 1 | #!/bin/sh |
|---|
| 2 | # Filename: PBI.RemoveScript.sh |
|---|
| 3 | # Place any custom removal code here. |
|---|
| 4 | # This script will be run before your program is deleted. |
|---|
| 5 | # ${1} is the directory name. |
|---|
| 6 | # ${2} is the username of person performing the deletion. |
|---|
| 7 | # TIP: 'kdialog' should be used for user interaction. |
|---|
| 8 | ######################################### |
|---|
| 9 | |
|---|
| 10 | rm /usr/local/bin/beep-media-player-2-bin |
|---|
| 11 | rm /usr/local/share/bmpx |
|---|
| 12 | rm /usr/local/libexec/beep-media* |
|---|
| 13 | rm /Programs/BMPx |
|---|
| 14 | |
|---|
| 15 | # Remove the old locale files since we are uninstalling |
|---|
| 16 | LANGFILE="bmpx.mo" |
|---|
| 17 | cd /Programs/${PROGDIR}/share/locale/ |
|---|
| 18 | for i in `ls` |
|---|
| 19 | do |
|---|
| 20 | rm /usr/local/share/locale/${i}/LC_MESSAGES/${LANGFILE} |
|---|
| 21 | done |
|---|
| 22 | |
|---|
| 23 | |
|---|
| 24 | if [ ! -z "$DISPLAY" ] |
|---|
| 25 | then |
|---|
| 26 | # Ask if we want to remove the user profiles |
|---|
| 27 | kdialog --yesno "Do you want to remove BMPx user settings?" --title "Remove user settings" |
|---|
| 28 | if [ "$?" = "0" ] |
|---|
| 29 | then |
|---|
| 30 | cd /home |
|---|
| 31 | for i in `ls` |
|---|
| 32 | do |
|---|
| 33 | if [ -e "/home/${i}/.config/bmpx" ] |
|---|
| 34 | then |
|---|
| 35 | rm -rf /home/${i}/.config/bmpx |
|---|
| 36 | fi |
|---|
| 37 | done |
|---|
| 38 | fi |
|---|
| 39 | fi |
|---|