startkde modifies PATH to add qt4 bin dir to the front

Sune Vuorela nospam at vuorela.dk
Mon Jun 17 09:04:01 BST 2013


On 2013-06-16, Albert Astals Cid <aacid at kde.org> wrote:
> So my path in a Plasma session is
> /usr/lib/x86_64-linux-gnu/qt4/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
>
> This makes the QT_SELECT thing from qtchooser not work
> since if i do
> QT_SELECT=qt5 moc
> i still get the /usr/lib/x86_64-linux-gnu/qt4/bin moc in path first
>
> Any idea why are we doing that? 

I'm pretty sure it is so that we can reach qdbus even when no Qt is
installed in system directories.

> Do we still need this? Can we at least change it so the path is added to the end?
>
> It is reported and assigned to noone in https://bugs.kde.org/show_bug.cgi?id=320623

We could at least wrap it in a if ! which qdbus >/dev/null ; then modifypath ; fi

But we need to do something.

/Sune





More information about the kde-core-devel mailing list