<div dir="ltr">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 <a href="https://harbour.jolla.com/faq#2.14.0">https://harbour.jolla.com/faq#2.14.0</a> is $XDG_DATA_HOME/<MyGameName> when I added in my .spec file packaging failed and according to the above link it states <div>

<br></div><div>"<span style="color:rgb(40,127,147);font-family:'Source Sans Pro',sans-serif;font-size:14px;line-height:20px">You must not hardcode </span><b style="color:rgb(40,127,147);font-family:'Source Sans Pro',sans-serif;font-size:14px;line-height:20px"><tt>/home/nemo/</tt></b><span style="color:rgb(40,127,147);font-family:'Source Sans Pro',sans-serif;font-size:14px;line-height:20px"> or </span><b style="color:rgb(40,127,147);font-family:'Source Sans Pro',sans-serif;font-size:14px;line-height:20px"><tt>$HOME/.config/</tt></b><span style="color:rgb(40,127,147);font-family:'Source Sans Pro',sans-serif;font-size:14px;line-height:20px">, 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.</span>"</div>

<div><div><br></div><div><br><div>So which is the proper way to have the folders <b style="color:rgb(40,127,147);font-family:'Source Sans Pro',sans-serif;font-size:14px;line-height:20px"><tt>$XDG_CONFIG_HOME/<HARBOUR_APP_NAME></tt></b>   and    <b style="color:rgb(40,127,147);font-family:'Source Sans Pro',sans-serif;font-size:14px;line-height:20px"><tt>$XDG_DATA_HOME/<HARBOUR_APP_NAME></tt></b>    and  <b style="color:rgb(40,127,147);font-family:'Source Sans Pro',sans-serif;font-size:14px;line-height:20px"><tt>$XDG_CACHE_HOME/<HARBOUR_APP_NAME></tt></b>      removed automatically when removing my game?</div>

<div><br></div><div>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.</div><div><br></div></div></div><div class="gmail_extra">

<br></div></div>