[SOLVED] QSetting and clearing all the files when uninstalling the application. N9



  • Hi all.
    is Any body using QSetting to store user's data in Meego? It'll make a file appname.conf on /home/user/.config/company_name/app_name.conf but when uninstall the application it not deleting this file. x_X

    I try to add a line to prerm file.
    @
    case "$1" in
    remove|upgrade|deconfigure)
    killall app_name > /dev/null 2>&1 || true
    rm /home/user/.config/company_name/app_name.conf
    ;;
    failed-upgrade)
    ;;
    *)
    echo "prerm called with unknown argument `$1'" >&2
    exit 1
    ;;
    esac

    dh_installdeb will replace this with shell code automatically

    generated by other debhelper scripts.

    #DEBHELPER#
    exit 0
    @

    in this case, when uninstalling the file had been deleted but poped up this message :"Can't delete. Please restart your device and try again. If the problem persists, please contact application developer for assistance." . did i do something wrong?



  • I have solved it by
    @
    case "$1" in
    remove|upgrade|deconfigure)
    killall app_name > /dev/null 2>&1 || true
    rm -f /home/user/.config/company_name/app_name.conf
    ;;
    failed-upgrade)
    ;;
    *)
    echo "prerm called with unknown argument `$1'" >&2
    exit 1
    ;;
    esac

    dh_installdeb will replace this with shell code automatically

    generated by other debhelper scripts.

    #DEBHELPER#
    exit 0
    @


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.