Re: KNewStuff3 .knsrc file fails to load under Windows

2016-07-01 Thread Jasem Mutlaq
Yes that did work great, thanks! Now KNewStuff and also icons are loading properly! On Fri, Jul 1, 2016 at 2:04 PM, Christoph Cullmann wrote: > Hi, > > xmlgui files can be included, kconfig stuff, too. > > xmlgui should have documented it in the headers. > > For kcfg and

Re: KNewStuff3 .knsrc file fails to load under Windows

2016-07-01 Thread Christoph Cullmann
Hi, xmlgui files can be included, kconfig stuff, too. xmlgui should have documented it in the headers. For kcfg and notifyrc I am not sure (nor do I know what they do ;=) Greetings Christoph - Am 1. Jul 2016 um 12:15 schrieb Jasem Mutlaq mutla...@ikarustech.com: > Hi, > > Ok great.

Re: KNewStuff3 .knsrc file fails to load under Windows

2016-07-01 Thread Jasem Mutlaq
Hi, 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: install(FILES kstars.kcfg DESTINATION ${KDE_INSTALL_KCFGDIR}) install(FILES kstars.knsrc DESTINATION ${KDE_INSTALL_CONFDIR})

Re: KNewStuff3 .knsrc file fails to load under Windows

2016-06-30 Thread Christoph Cullmann
Hi, same answer as for icons: KConfig was patched by me to search inside resources, too. Just bundle your file as resource, works for KTextEditor framework, avoids any file lookups. Greetings Christoph - Am 30. Jun 2016 um 22:41 schrieb Jasem Mutlaq mutla...@ikarustech.com: > Ok, so I

Re: KNewStuff3 .knsrc file fails to load under Windows

2016-06-30 Thread Jasem Mutlaq
Ok, so I found the source of this problem. In kconfig.cpp #719 we have: Q_FOREACH (const QString , QStandardPaths::locateAll(resourceType, fileName)) { files.prepend(f); For the KNewStuff3, the resourceType is GenericConfigLocation which on Linux is ~/.config and /etc/xdg. Since the

KNewStuff3 .knsrc file fails to load under Windows

2016-06-30 Thread Jasem Mutlaq
Hello, Found a new bug today when KStars KNewStuff3 was started. The error is "Configuration file kstars.knsrc is invalid". KNewStuff3 sends the filename as "kstars.knsrc" which is under Windows is installed to $KDEROOT/etc/xdg and also to $APPIMAGEDIR/etc/xdg Traced problem with