| 13 | | cd /home |
| 14 | | for i in `ls` |
| 15 | | do |
| 16 | | if [ -d "/home/${i}/.nexuiz" ] |
| 17 | | then |
| 18 | | kdialog --title "Uninstalling Nexuiz!" --yesno "Do you wish to erase nexuiz's saved games and configuration files for ${i} user as well?" |
| 19 | | if [ "$?" = "0" ] |
| 20 | | then |
| 21 | | rm -fR /home/${i}/.nexuiz |
| 22 | | fi |
| 23 | | fi |
| 24 | | done |
| | 13 | |
| | 14 | if [ ! -z "$DISPLAY" ] |
| | 15 | then |
| | 16 | # Ask if we want to remove the user profiles |
| | 17 | kdialog --yesno "Do you want to remove Nexuiz user settings?" --title "Remove user settings" |
| | 18 | if [ "$?" = "0" ] |
| | 19 | then |
| | 20 | cd /home |
| | 21 | for i in `ls` |
| | 22 | do |
| | 23 | if [ -e "/home/${i}/.nexuiz" ] |
| | 24 | then |
| | 25 | rm -rf /home/${i}/.nexuiz |
| | 26 | fi |
| | 27 | done |
| | 28 | fi |
| | 29 | fi |