[SailfishDevel] Folder permissions

Andrey Kozhevnikov coderusinbox at gmail.com
Fri Mar 14 08:13:50 UTC 2014


Because its developer mailing list not for Harbour developers only :)

On 14.03.2014 14:11, Iosif Hamlatzis wrote:
> ?????????????????
>
> Now I'm really confused
>
> ?????????????????
>
> if it's not allowed in harbour why do you propose it as a solution?
>
> As much as I don't want to, I think I will revert to bad form, I will 
> create my config/cache/data folders at run-time, I will have my game 
> create and use the settings and data files at the correct place and if 
> someone doesn't like my game and removes it then he or she will have 
> garbage on the device.
>
> Let them deal with the problem with the jolla support team.
>
> I know it's BAD but it seems jolla team haven't thought it through.
>
> I know it's not proper to make comparisons but having my games on four 
> different app stores (badaOS, webOS, BlackBerry and iOS) and all being 
> source compatible makes me think there are a lot of issues with this 
> new platform.
>
> I didn't expect porting will be without an effort but then again I 
> didn't have that much problem porting for example to iOS, considering 
> that it's a platform the proposed language of development is 
> Objective-C and not C/C++.
>
>
>
>
>
> On 14 March 2014 09:49, Andrey Kozhevnikov <coderusinbox at gmail.com 
> <mailto:coderusinbox at gmail.com>> wrote:
>
>     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
>
>
>     _______________________________________________
>     SailfishOS.org Devel mailing list
>
>
>
>
> _______________________________________________
> SailfishOS.org Devel mailing list

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


More information about the Devel mailing list