[PATCH] Set default Qt directory in startkde

Percy Camilo TriveƱo Aucahuasi orgyforever at gmail.com
Mon Mar 3 14:56:45 GMT 2008


I always had solved this issue adding this lines on the startkde script:

export KDEDIR=$HOME/kde
export QTDIR=$HOME/qt-copy
export QT_PLUGIN_PATH=$KDEDIR/lib/kde4/plugins:$QT_PLUGIN_PATH
export PATH=$KDEDIR/bin:$QTDIR/bin:/usr/local/bin:$PATH
if [[ $LD_LIBRARY_PATH = "" ]]
    then export LD_LIBRARY_PATH=$KDEDIR/lib:$QTDIR/lib
    else export LD_LIBRARY_PATH=$KDEDIR/lib:$QTDIR/lib:$LD_LIBRARY_PATH
fi

I already reported a simular topic here:
http://lists-archives.org/kde-devel/14650-could-not-start-d-bus-check-your-installation-and-startkde.html

Hope this help

Greetings
Percy


2008/3/3, Thiago Macieira <thiago at kde.org>:
>
> 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
> QLibraryInfo::location(QLibraryInfo::BinariesPath).
>
> Some of the other values may be useful too:
> http://doc.trolltech.com/4.4beta/qlibraryinfo.html#location
>
>
>
> --
>    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 --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20080303/60da5f21/attachment.htm>


More information about the kde-core-devel mailing list