Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. [SOLVED] QSetting and clearing all the files when uninstalling the application. N9

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

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 1 Posters 2.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Tratstil
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • T Offline
      T Offline
      Tratstil
      wrote on last edited by
      #2

      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
      @

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved