[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: No GUI?
From: Waldo Bastian <bastian () kde ! org>
Date: 2004-07-12 13:57:11
Message-ID: 200407121557.11215.bastian () kde ! org
[Download RAW message or body]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Mon July 12 2004 15:01, Rolf Magnus wrote:
> On Monday 12 July 2004 12:58, Yarram Sunil Kumar wrote:
> > I tried the following:-
> > const KAboutData data("p1","","");
> > KCmdLineArgs::init(&data);
> > KApplication a(false,false);
> >
> > I ran the program with and without kde running, in both cases the
> > program was not running. i have pasted the errors in both cases.
> >
> > Following is the error output without starting kde :-
> >
> > <errors>
> > QPixmap: Cannot create a QPixmap when no GUI is being used
> > QPixmap: Cannot create a QPixmap when no GUI is being used
> > kdeinit: Aborting. $DISPLAY is not set.
> > There was an error setting up inter-process
> > communications for KDE. The message returned
> > by the system was:
> >
> > Could not read network connection list.
> > /home/sunilyv/.DCOPserver_sunilyv.bangalore.corp.yahoo.com_NODISPLAY
> >
> > Please check that the "dcopserver" program is running!
> > QPixmap: Cannot create a QPixmap when no GUI is being used
> > QPixmap: Cannot create a QPixmap when no GUI is being used
> > KCrash: Application 'p1' crashing...
> > drkonqi: '<displayname>' missing.
> > drkonqi: Use --help to get a list of available command line options.
> > </errors>
>
> I wrote some small test program that uses KApplication and runs without GUI
> and had the same problem. I found out that I could run it if I just set
> $DISPLAY to a bogus value.
Does it help if you call KApplication::disableAutoDcopRegistration() before
creating the KApplication object?
Cheers,
Waldo
- --
bastian@kde.org | KDE Community World Summit 2004 | bastian@suse.com
bastian@kde.org | 21-29 August, Ludwigsburg, Germany | bastian@suse.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQFA8pi3N4pvrENfboIRAi3tAJ0cuy1CKZ1K7iZt8RwCjz7mNRk4yQCfVTy9
0GY1ivDG/5Vr8vSZr6CH1LY=
=RvfG
-----END PGP SIGNATURE-----
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic