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:
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
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:
devel-su user -c "rm -rf /home/user/.config/mydatafolder/"
Does anybody know how to remove this folder?
su user -c "rm -rf /home/user/.config/mydatafolder/"