[PATCH] Set default Qt directory in startkde

Thiago Macieira thiago at kde.org
Mon Mar 3 13:49:52 GMT 2008

On Monday 03 March 2008 14:11:20 David Faure wrote:
> On Sunday 02 March 2008, David Jarvie wrote:
> > Currently, startkde fails to start a KDE session when PATH doesn't
> > contain the Qt bin directory. The startkde script uses the directory
> > containing itself as the default for the KDE installation's bin
> > directory, and adds that to PATH. But it doesn't set Qt's directory.
> Can you remind us what the Qt bin directory is necessary for, during an end
> user's kde session?

qdbus & qdbusviewer. Sometimes, qtconfig.

But qdbus itself is run by startkde to detect whether D-Bus is started.

> > ldd $bindir/kde4-config|grep libQtCore.so
> I'm not sure that's portable.

It's not, but we're not caring for the non-ELF X11 systems at this point in 
time. The ELF ones should have ldd.

> > sed 's#^[^/]*\(.*\)/lib/.*$#\1#'`/bin
> And this makes assumptions on the way Qt is installed, doesn't it? (Not
> that I can think of a case where this wouldn't be true, but you never know
> :)

What I would recommend is simply modifying kde4-config to print the value of 

Some of the other values may be useful too:

  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20080303/4323ac72/attachment.sig>

More information about the kde-core-devel mailing list