[SailfishDevel] Folder permissions

Jonni Rainisto jonni.rainisto at jolla.com
Thu Mar 13 18:47:44 UTC 2014


Did you remember to add %ghost in .spec files for rpm to claim ownership for files that you created? Afaik with that remove will also remove the files when package is uninstalled.

________________________________
From: devel-bounces at lists.sailfishos.org [devel-bounces at lists.sailfishos.org] on behalf of Iosif Hamlatzis [i.hamlatzis at gmail.com]
Sent: Thursday, March 13, 2014 8:22 PM
To: Sailfish OS Developers
Subject: Re: [SailfishDevel] Folder permissions

Thank you very much, I've just tested my game using the XDG basedir and it worked so I can continue my port of the game by modifying the rest of the code.

Just one question, will the folders under .config/.cache/.local be removed if I uninstall the game? I've noticed that using the XDG basedir to read the environment variables I get something like: ..../..../<MyGameName> but no folder is created, so I programmatically created the <MyGameName> folder and placed my config (read/write) files.

Since the GUI from the emulator doesn't uninstall the actual game I ssh into the emulator and called "zypper remove <MyGameName>" and it was uninstalled but the folders with all their contents I had created weren't erased. If this happens in the actual device then at some point there isn't going to be any space available on the device.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20140313/34cc2ae3/attachment.html>


More information about the Devel mailing list