[PATCH] Set default Qt directory in startkde
David Faure
faure at kde.org
Mon Mar 3 20:35:32 GMT 2008
On Monday 03 March 2008, David Jarvie wrote:
> On Mon 3 March 2008 19:11:24 Thiago Macieira wrote:
> > On Monday 03 March 2008 19:37:11 David Jarvie wrote:
> > > Here's a patch which follows the above scheme, by giving kde4-config some
> > > extra Qt related options. Okay to commit?
> >
> > No. Almost there. :-)
> >
> > > Index: kdebase/workspace/startkde.cmake
> > > ===================================================================
> > > --- kdebase/workspace/startkde.cmake (revision 780962)
> > > +++ kdebase/workspace/startkde.cmake (working copy)
> > > @@ -36,6 +36,7 @@
> > >
> > > # in case we have been started with full pathname spec without being in
> > > PATH bindir=`echo "$0" | sed -n 's,^\(/.*\)/[^/][^/]*$,\1,p'`
> > > +bindir=$bindir:`$bindir/kde4-config --qt-binaries`
> > > if [ -n "$bindir" ]; then
> > > case $PATH in
> > > $bindir|$bindir:*|*:$bindir|*:$bindir:*) ;;
> >
> > By appending the Qt dir to bindir at that position, you break the test on
> > the next line. Append it to PATH at a later point in the startkde script.
>
> Okay. The new patch attached treats the Qt bin directory in the same manner as
> the KDE one.
Very nice.
--
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