|
Revision 3189, 0.7 KB
(checked in by kris, 31 hours ago)
|
|
Updated AbiWord? to be 100% self-contained now!
|
-
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 | if [ ! -z "$DISPLAY" ] |
|---|
| 11 | then |
|---|
| 12 | # Ask if we want to remove the user profiles |
|---|
| 13 | kdialog --yesno "Do you want to remove AbiWord user settings and temporal files?" --title "Remove user settings" |
|---|
| 14 | if [ "$?" = "0" ] |
|---|
| 15 | then |
|---|
| 16 | cd /home |
|---|
| 17 | for i in `ls` |
|---|
| 18 | do |
|---|
| 19 | if [ -e "/home/${i}/.AbiSuite" ] |
|---|
| 20 | then |
|---|
| 21 | rm -rf /home/${i}/.AbiSuite |
|---|
| 22 | fi |
|---|
| 23 | done |
|---|
| 24 | fi |
|---|
| 25 | fi |
|---|