problem with KApplication(bool GUIenabled = false)

David Faure faure at kde.org
Fri Feb 23 15:30:13 GMT 2007


On Friday 23 February 2007, Christian Ehrlicher wrote:
> Hi,
> 
> On win32 I've a problem with KApplication(bool GUIenabled = false). 
> Every Application will crash due to the consruction of the clipboard 
> object. This object creates a QWidget to handle clipboard actions 
> (that's the way clipboard works on win32).
> Because the application is a tty, the QWidget construction will fail 
> with a qFatal()...
> 
> Afaics the call to KClipboardSynchronizer::self() in kapplication.cpp is 
> the problem. A possible solution would be to KClipboardSynchronizer only 
> in gui mode, but I'm unaware of possible side effects.

Yes, feel free to make it do that. No GUI -> no clipboard.

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).




More information about the kde-core-devel mailing list