![]() Registered Member ![]()
|
Hello.
I want to use KConfig in a shared library because I want to make use of KDE's KIOSK system, default values etc:
The problem is that instantiating KConfig produces an error on stdout (or stderr?):
The library may not produce any output. So how can I avoid this output? Some ideas I had didn't work:
So what other possibilities do I have?
Lukas Sommer
|
![]() Administrator ![]()
|
You need to ensure that any / all users of your shared library use KApplication / QApplication.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
Well, that's exactly what I can not make sure. Some of them will use KApplication/QApplication, some of them no (GTK applications...).
Lukas Sommer
|
![]() Administrator ![]()
|
Presence of a QApplication or KApplication instance is required to use KConfig. You will likely need to use GNOME's infrastructure if it has one in the case of it being used in a Gtk application.
You can do this by checking the validity of the qApp pointer.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
Okay. Thank you.
Lukas Sommer
|
Registered users: abc72656, Bing [Bot], daret, Google [Bot], Sogou [Bot], Yahoo [Bot]