|
Revision 1244, 0.8 KB
(checked in by gonzalo, 12 months ago)
|
|
Duplicated icon fixed
|
| 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 | rm -fR /usr/local/bin/lincity-ng |
|---|
| 10 | rm -fR /usr/local/share/lincity-ng |
|---|
| 11 | rm -fR /usr/local/share/pixmaps/lincity-ng.png |
|---|
| 12 | rm -fR /usr/local/share/doc/lincity-ng |
|---|
| 13 | #rm -fR /usr/local/share/applications/lincity-ng.desktop |
|---|
| 14 | |
|---|
| 15 | if [ ! -z "$DISPLAY" ] |
|---|
| 16 | then |
|---|
| 17 | # Ask if we want to remove the user profiles |
|---|
| 18 | kdialog --yesno "Do you want to remove LinCity-NG user settings?" --title "Remove user settings" |
|---|
| 19 | if [ "$?" = "0" ] |
|---|
| 20 | then |
|---|
| 21 | cd /home |
|---|
| 22 | for i in `ls` |
|---|
| 23 | do |
|---|
| 24 | if [ -e "/home/${i}/.lincity-ng" ] |
|---|
| 25 | then |
|---|
| 26 | rm -rf /home/${i}/.lincity-ng |
|---|
| 27 | fi |
|---|
| 28 | done |
|---|
| 29 | fi |
|---|
| 30 | fi |
|---|