<div dir="ltr">Hi,<div><br></div><div>Ok great. Besides icons, which files can be included in the resources file and what prefixes to use? Is there documentation for this? We currently have this:</div><div><br></div><div>
install(FILES kstars.kcfg DESTINATION ${KDE_INSTALL_KCFGDIR})<br>install(FILES kstars.knsrc DESTINATION ${KDE_INSTALL_CONFDIR})<br>install(FILES kstarsui.rc DESTINATION ${KDE_INSTALL_KXMLGUI5DIR}/kstars)<br>install(FILES fitsviewer.rc DESTINATION ${KDE_INSTALL_KXMLGUI5DIR}/kstars)<br>install(FILES kstars.notifyrc DESTINATION ${KNOTIFYRC_INSTALL_DIR})<pre style="margin-top:0px;margin-bottom:0px"></pre><pre style="margin-top:0px;margin-bottom:0px"><br></pre>Regards,<br>Jasem<div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 1, 2016 at 7:18 AM, Christoph Cullmann <span dir="ltr"><<a href="mailto:cullmann@absint.com" target="_blank">cullmann@absint.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi,<br>
<br>
same answer as for icons: KConfig was patched by me to search inside resources, too.<br>
Just bundle your file as resource, works for KTextEditor framework, avoids any file<br>
lookups.<br>
<br>
Greetings<br>
Christoph<br>
<div><div class="h5"><br>
----- Am 30. Jun 2016 um 22:41 schrieb Jasem Mutlaq <a href="mailto:mutlaqja@ikarustech.com">mutlaqja@ikarustech.com</a>:<br>
<br>
> Ok, so I found the source of this problem. In kconfig.cpp #719 we have:<br>
><br>
> Q_FOREACH (const QString &f, QStandardPaths::locateAll(resourceType, fileName))<br>
> {<br>
> files.prepend(f);<br>
><br>
> For the KNewStuff3, the resourceType is GenericConfigLocation which on Linux is<br>
> ~/.config and /etc/xdg. Since the "kstars.knsrc" file is in /etc/xdg, this<br>
> works fine on Linux. On the other hand, on Windows, the GenericConfigLocation<br>
> is<br>
><br>
> "C:/Users/<USER>/AppData/Local", "C:/ProgramData"<br>
><br>
> But kstars.knsrc is install to $KDEROOT/etc/xdg or $APPIMAGEDIR/etc/xdg, so this<br>
> is why it fails to load it. Not sure how to resolve this issues besides<br>
> patching KConfig to add $XDG_DIR to be searched as well for that file. Any<br>
> thoughts?<br>
><br>
> Regards,<br>
> Jasem<br>
><br>
><br>
> On Thu, Jun 30, 2016 at 5:28 PM, Jasem Mutlaq < <a href="mailto:mutlaqja@ikarustech.com">mutlaqja@ikarustech.com</a> > wrote:<br>
><br>
><br>
><br>
> Hello,<br>
><br>
> Found a new bug today when KStars KNewStuff3 was started. The error is<br>
> "Configuration file kstars.knsrc is invalid".<br>
><br>
> KNewStuff3 sends the filename as "kstars.knsrc" which is under Windows is<br>
> installed to $KDEROOT/etc/xdg and also to $APPIMAGEDIR/etc/xdg<br>
><br>
> Traced problem with KConfigPrivate::changeFilename() where it checks if the file<br>
> path is absolute and when it fails it creates a new file. Hence, it then fails<br>
> to read any contents. The resource type (GenericConfigLocation) doesn't appear<br>
> to be used to find the absolute path of the file.<br>
><br>
> How to resolve this issue?<br>
><br>
> --<br>
> Best Regards,<br>
> Jasem Mutlaq<br>
><br>
><br>
><br>
><br>
> --<br>
> Best Regards,<br>
> Jasem Mutlaq<br>
><br>
><br>
</div></div>> _______________________________________________<br>
> Kde-windows mailing list<br>
> <a href="mailto:Kde-windows@kde.org">Kde-windows@kde.org</a><br>
> <a href="https://mail.kde.org/mailman/listinfo/kde-windows" rel="noreferrer" target="_blank">https://mail.kde.org/mailman/listinfo/kde-windows</a><br>
<br>
--<br>
----------------------------- Dr.-Ing. Christoph Cullmann ---------<br>
AbsInt Angewandte Informatik GmbH      Email: cullmann@AbsInt.com<br>
Science Park 1                         Tel:   <a href="tel:%2B49-681-38360-22" value="+496813836022">+49-681-38360-22</a><br>
66123 Saarbrücken                      Fax:   <a href="tel:%2B49-681-38360-20" value="+496813836020">+49-681-38360-20</a><br>
GERMANY                                WWW:   <a href="http://www.AbsInt.com" rel="noreferrer" target="_blank">http://www.AbsInt.com</a><br>
--------------------------------------------------------------------<br>
Geschäftsführung: Dr.-Ing. Christian Ferdinand<br>
Eingetragen im Handelsregister des Amtsgerichts Saarbrücken, HRB 11234<br>
_______________________________________________<br>
Kde-windows mailing list<br>
<a href="mailto:Kde-windows@kde.org">Kde-windows@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/kde-windows" rel="noreferrer" target="_blank">https://mail.kde.org/mailman/listinfo/kde-windows</a><br>
</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></div></div>