I've checked the link and as I understand it doesn't take wildcards, so if I don't know beforehand the names of the files that will be created at runtime then I'm in big trouble.
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 with the %ghost directive 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. On 14 March 2014 09:19, Andrey Kozhevnikov <coderusin...@gmail.com> wrote: > > http://www.rpm.org/max-rpm-snapshot/s1-rpm-inside-files-list-directives.html > > > On 14.03.2014 13:16, Iosif Hamlatzis wrote: > > I was told in another thread that if I wanted my configuration and data > files that my game places in the XDG basedir to be removed during > uninstallation I should use the %ghost directive in the .spec file. > > I am not a linux developer so I don't know what this means, is there a > sample somewhere? I couldn't find something in the sailfish site. Also can > I include a whole folder so that I don't have to add by hand all files? > > I thought we don't modify the .spec file but instead everything is done > through the GUI that changes the .yaml file > > > _______________________________________________ > SailfishOS.org Devel mailing list > > > > _______________________________________________ > SailfishOS.org Devel mailing list >
_______________________________________________ SailfishOS.org Devel mailing list