fatpuss / mobileterminal

Automatically exported from code.google.com/p/mobileterminal
0 stars 0 forks source link

clean uninstall #257

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. uninstall via *.deb file
2.
3.

What is the expected output? What do you see instead?
Expect a clean uninstall.  Preference file 
"com.googlecode.mobileterminal.Terminal.plist" remains.  I don't like software 
that leaves remnants.

Please use labels and text to provide additional information.

Creating a "postrm" file in the DEBIAN directory of the *.deb structure with 
the following code will result in a clean, complete uninstall.

*****

#!/bin/bash

echo "Removing associated files"
rm -f 
/var/mobile/Library/Preferences/com.googlecode.mobileterminal.Terminal.plist

if [[ $1 == configure ]]; then
    declare -a cydia
    cydia=($CYDIA)
    if [[ ${CYDIA+@} ]]; then
        eval "echo 'finish:restart' >&${cydia[0]}"
    else
        echo "Please restart SpringBoard"
    fi
fi

Original issue reported on code.google.com by paul.w.palm@gmail.com on 4 Feb 2011 at 9:09

GoogleCodeExporter commented 9 years ago

Original comment by paul.w.palm@gmail.com on 4 Feb 2011 at 9:11

GoogleCodeExporter commented 9 years ago

Original comment by allen.po...@gmail.com on 13 Feb 2011 at 6:44

GoogleCodeExporter commented 9 years ago
I've learned that my "postrm" file accomplishes the same as a purge (dpkg -P 
*.deb), which removes all associated configuration files.  (Mine only removes 
one mobileterminal plist; purge would remove all mobileterminal created 
plists.)  I'll leave it to others whether my "postrm" should be added to the 
*.deb.

Original comment by paul.w.palm@gmail.com on 18 Feb 2011 at 3:59

GoogleCodeExporter commented 9 years ago
The remain of the preferences file can be seen as bug or feature (we all know 
the saying: It's not a bug, it's a feature). Maybe you want to uninstall 
MobileTerminal and install it later. Then you're happy your preferences are 
still existent. Maybe you have to remove MobileTerminal because of a lack of 
space, then you want every file removed.

As you said, purge does what you wanted to do and even more, it's built in.
I'm marking this as "WontFix" for now. If anyone complains, re-open it

Original comment by dave.sto...@gmail.com on 19 Feb 2011 at 5:29