<div dir="ltr">Ok, so I found the source of this problem. In kconfig.cpp #719 we have:<br><br><div>Q_FOREACH (const QString &f, QStandardPaths::locateAll(resourceType, fileName)) {<br>     files.prepend(f);<div><pre style="margin-top:0px;margin-bottom:0px"></pre></div></div><div><br></div><div>For the KNewStuff3, the resourceType is GenericConfigLocation which on Linux is ~/.config and /etc/xdg. Since the "kstars.knsrc" file is in /etc/xdg, this works fine on Linux. On the other hand, on Windows, the GenericConfigLocation is</div><div><br></div>"C:/Users/<USER>/AppData/Local", "C:/ProgramData"<div><br></div><div>But kstars.knsrc is install to $KDEROOT/etc/xdg or $APPIMAGEDIR/etc/xdg, so this is why it fails to load it. Not sure how to resolve this issues besides patching KConfig to add $XDG_DIR to be searched as well for that file. Any thoughts?</div><div><br></div><div>Regards,</div><div>Jasem</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 30, 2016 at 5:28 PM, Jasem Mutlaq <span dir="ltr"><<a href="mailto:mutlaqja@ikarustech.com" target="_blank">mutlaqja@ikarustech.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>Found a new bug today when KStars KNewStuff3 was started. The error is "Configuration file kstars.knsrc is invalid".</div><div><br></div><div>KNewStuff3 sends the filename as "kstars.knsrc" which is under Windows is installed to $KDEROOT/etc/xdg and also to $APPIMAGEDIR/etc/xdg</div><div><br></div><div>Traced problem with KConfigPrivate::changeFilename() where it checks if the file path is absolute and when it fails it creates a new file. Hence, it then fails to read any contents. The resource type (GenericConfigLocation) doesn't appear to be used to find the absolute path of the file.</div><div><br></div><div>How to resolve this issue?</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>-- <br><div data-smartmail="gmail_signature"><div dir="ltr"><div>Best Regards,<br>Jasem Mutlaq<br></div><div><br></div></div></div>
</div></font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Best Regards,<br>Jasem Mutlaq<br></div><div><br></div></div></div>
</div>