[PATCH] Set default Qt directory in startkde

David Jarvie djarvie at kde.org
Mon Mar 3 16:01:23 GMT 2008

On Monday 3 March 2008 14:56, Percy Camilo TriveƱo Aucahuasi wrote:
> 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
> fi

I have used similar stuff in the past, but the problem with this approach
is that it uses hard-coded paths for KDE and Qt. If I copied your script
onto my system without modification, it wouldn't work.

> 2008/3/3, Thiago Macieira <thiago at kde.org>:
>> 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

This seems a good way to do it. I'll propose another patch.

David Jarvie.
KAlarm author & maintainer.

More information about the kde-core-devel mailing list