Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User meandnano's Avatar
    Join Date
    Nov 2010
    Posts
    18
    Hello, forum!

    My Qt application for Nokia N9 stores some data in the my folder inside /home/user/.config. I need to delete this folder with my data when application will be uninstalled. As far as I understand this can be reached using postrm file. I use the following file:

    postrm
    Code:
    #!/bin/sh
    
    rm -rf /home/user/.config/mydatafolder/
    
    exit 0
    But this code doesn't work. I assume there's not enough rights to remove something in the user's folder. So, I've tried to use

    Code:
    devel-su user -c "rm -rf /home/user/.config/mydatafolder/"
    But it works only in developer mode and I need the app to work properly without it. The following code doesn't work too:

    Code:
    su user -c "rm -rf /home/user/.config/mydatafolder/"
    Does anybody know how to remove this folder?

  2. #2
    Registered User rhythmkay's Avatar
    Join Date
    Sep 2012
    Posts
    31
    I think you can first change it's permission to 666
    juse like this:

    chmod 666 /home/user/.config/mydatafolder/
    //however i didnt try it ever for a directory ,i think u can try it.

    Or first use cd command to go to the direcrtory u need.
    Then do this
    chmod -R a+r *

    //I think so ,i am not familiar with linux command's usage, it is just a way for solving it,sorry.

Similar Threads

  1. Replies: 5
    Last Post: 2010-09-08, 00:36
  2. How to delete Folder
    By gobi_est in forum Symbian C++
    Replies: 2
    Last Post: 2009-08-14, 13:04
  3. File removal query
    By kkc_123 in forum Symbian C++
    Replies: 2
    Last Post: 2009-02-20, 07:09
  4. Can I delete SMS entry from SENT folder
    By pankajmahto in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2006-10-03, 04:34
  5. Cannot delete messaging folder!
    By symsym in forum Symbian Networking & Messaging (Closed)
    Replies: 7
    Last Post: 2005-09-15, 06:48

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved