Re: [SailfishDevel] Folder permissions

2014-03-14 Thread Iosif Hamlatzis
Thank you, a big burden has been lifted. I can now start debugging the game on the actual device since the emulator doesn't support landscape mode. On 14 March 2014 12:53, Thomas Perl wrote: > On 14 Mar 2014, at 11:37, Ove Kåven wrote: > > Den 13. mars 2014 19:22, skrev Iosif Hamlatzis: > >>

Re: [SailfishDevel] Folder permissions

2014-03-14 Thread Thomas Perl
On 14 Mar 2014, at 11:37, Ove Kåven wrote: > Den 13. mars 2014 19:22, skrev Iosif Hamlatzis: >> 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 folder

Re: [SailfishDevel] Folder permissions

2014-03-14 Thread Ove Kåven
Den 13. mars 2014 19:22, skrev Iosif Hamlatzis: 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

Re: [SailfishDevel] Folder permissions

2014-03-14 Thread Andrey Kozhevnikov
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

Re: [SailfishDevel] Folder permissions

2014-03-14 Thread Iosif Hamlatzis
? 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

Re: [SailfishDevel] Folder permissions

2014-03-14 Thread Andrey Kozhevnikov
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

Re: [SailfishDevel] Folder permissions

2014-03-14 Thread Iosif Hamlatzis
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/ when I added in my

Re: [SailfishDevel] Folder permissions

2014-03-13 Thread Jonni Rainisto
behalf of Iosif Hamlatzis [i.hamlat...@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 modi

Re: [SailfishDevel] Folder permissions

2014-03-13 Thread Iosif Hamlatzis
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

Re: [SailfishDevel] Folder permissions

2014-03-09 Thread Andrey Kozhevnikov
QDir::homePath() inside app while deploying you shouldnt copy anything to home. /usr/share for const predefined data. $HOME/.local/share/appname for any downloaded/created internal (!) application data like caches. Downloaded media you can save in Video/Pictures/Music folders. For settings us

Re: [SailfishDevel] Folder permissions

2014-03-09 Thread Ove Kåven
Den 09. mars 2014 18:33, skrev Iosif Hamlatzis: When deploying a game/application where should its resources (images/sounds/settings files) be stored so that the game/application can have both read and write permissions? You should clarify why you need write permissions, so that it's possible

Re: [SailfishDevel] Folder permissions

2014-03-09 Thread Thomas Perl
On 09 Mar 2014, at 18:56, Iosif Hamlatzis wrote: > ok and the next logical question is: How to get the $HOME folder of the > emulator or later the actual device in my .pro file? I think it shouldn't be > hard-coded. The Harbour FAQ has several detailed answers about where to ship (sic) read-on

Re: [SailfishDevel] Folder permissions

2014-03-09 Thread Iosif Hamlatzis
ok and the next logical question is: How to get the $HOME folder of the emulator or later the actual device in my .pro file? I think it shouldn't be hard-coded. I tried to use: "/$$(HOME)/.local/share/$${TARGET}" but it seams this translates into /home/*mersdk*/.local/share/FarWest/Home/ which is

Re: [SailfishDevel] Folder permissions

2014-03-09 Thread Andrey Kozhevnikov
/usr/share/appname is read only for applications $HOME/.local/share/appname is read and write On 09.03.2014 23:33, Iosif Hamlatzis wrote: When deploying a game/application where should its resources (images/sounds/settings files) be stored so that the game/application can have both read and wr

[SailfishDevel] Folder permissions

2014-03-09 Thread Iosif Hamlatzis
When deploying a game/application where should its resources (images/sounds/settings files) be stored so that the game/application can have both read and write permissions? I tried to use the /usr/share/$$(TARGET) folder where $$(TARGET) is the name of my game but it seams the game doesn't have pe