[SailfishDevel] Folder permissions

Andrey Kozhevnikov coderusinbox at gmail.com
Fri Mar 14 07:49:43 UTC 2014


use *%preun*and*%postun* scriptlets, but its not allowed in harbour :D

On 14.03.2014 13:43, Iosif Hamlatzis wrote:
> I cannot use the %ghost directive as I don't know the names of the 
> data files that will be created during runtime, can I use the %ghost 
> directive with wildcards?. Also the folder I store my data files 
> according to this link https://harbour.jolla.com/faq#2.14.0 
> is $XDG_DATA_HOME/<MyGameName> when I added in my .spec file packaging 
> failed and according to the above link it states
>
> "You must not hardcode */home/nemo/* or *$HOME/.config/*, etc. - use 
> the Qt 5 QStandardPaths, GLib convenience methods or the xdg-helper 
> library to determine the paths. This will make sure your application 
> keeps working for sandboxed use cases, multi-user use cases as well as 
> multi-profile single-user use cases."
>
>
> So which is the proper way to have the folders 
> *$XDG_CONFIG_HOME/<HARBOUR_APP_NAME>*  and 
> *$XDG_DATA_HOME/<HARBOUR_APP_NAME>*  and 
> *$XDG_CACHE_HOME/<HARBOUR_APP_NAME>*    removed automatically when 
> removing my game?
>
> These three folders aren't automatically created on installation and 
> as I understand I have to create them at run-time on my first run if I 
> want to use them.
>
>
>
>
> _______________________________________________
> SailfishOS.org Devel mailing list

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20140314/5886d2f3/attachment.html>


More information about the Devel mailing list