X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fhildon2%2Fmodest-clean.sh;h=0d3cf7927d9575f5ba4163a138aba6749179bd8b;hb=4ab4ff904fc23d7cac7da69d52db8b0acc4c3525;hp=305650fdd106b33344feeaebbcbd5e632a034306;hpb=d2df27c805e944ceba9b576c440440f0c3f4e5f2;p=modest diff --git a/src/hildon2/modest-clean.sh b/src/hildon2/modest-clean.sh old mode 100644 new mode 100755 index 305650f..0d3cf79 --- a/src/hildon2/modest-clean.sh +++ b/src/hildon2/modest-clean.sh @@ -1,5 +1,10 @@ #!/bin/sh +# First we kill Modest to make sure that, when we remove +# all the data, modest won't write again +PIDS=`pidof modest` && kill -15 $PIDS + +# Removing modest user data folder rm -rf /home/user/.modest -return 0 +exit 0