<div dir="ltr">Hi all,<div><br></div><div style>Line 19-33 of the startkde script reads:</div><div style><br></div><div style><pre class="" style="font-size:12px;line-height:14.390625px;margin-top:0px;margin-bottom:0px;padding:0px;background-image:none;vertical-align:top;color:rgb(0,0,0)">
# in case we have been started with full pathname spec without being in PATH
bindir=`echo "$0" | sed -n 's,^\(/.*\)/[^/][^/]*$,\1,p'`
if [ -n "$bindir" ]; then
  qbindir=`$bindir/kde4-config --qt-binaries`
  if [ -n "$qbindir" ]; then
    case $PATH in
      $qbindir|$qbindir:*|*:$qbindir|*:$qbindir:*) ;;
      *) PATH=$qbindir:$PATH; export PATH;;
    esac
  fi
  case $PATH in
    $bindir|$bindir:*|*:$bindir|*:$bindir:*) ;;
    *) PATH=$bindir:$PATH; export PATH;;
  esac
fi</pre><pre class="" style="font-size:12px;line-height:14.390625px;margin-top:0px;margin-bottom:0px;padding:0px;background-image:none;vertical-align:top;color:rgb(0,0,0)"><span style="font-family:arial"><br></span></pre>
<pre class="" style="font-size:12px;line-height:14.390625px;margin-top:0px;margin-bottom:0px;padding:0px;background-image:none;vertical-align:top;color:rgb(0,0,0)">W<span style="font-family:arial">hat's the reason for adding the path of the Qt executables to the PATH? (the second "if" clause)</span><br>
</pre><pre class="" style="font-size:12px;line-height:14.390625px;margin-top:0px;margin-bottom:0px;padding:0px;background-image:none;vertical-align:top;color:rgb(0,0,0)"><span style="font-family:arial"><br></span></pre><pre class="" style="font-size:12px;line-height:14.390625px;margin-top:0px;margin-bottom:0px;padding:0px;background-image:none;vertical-align:top;color:rgb(0,0,0)">
<span style="font-family:arial">Does KDE need the Qt tools to be in PATH for some reason? I tried commenting those lines and it started fine without them.</span></pre><pre class="" style="font-size:12px;line-height:14.390625px;margin-top:0px;margin-bottom:0px;padding:0px;background-image:none;vertical-align:top;color:rgb(0,0,0)">
<span style="font-family:arial"><br></span></pre><pre class="" style="font-size:12px;line-height:14.390625px;margin-top:0px;margin-bottom:0px;padding:0px;background-image:none;vertical-align:top;color:rgb(0,0,0)"><span style="font-family:arial">The reason I'm asking is I'm on Arch, which recently switched to a setup where:</span></pre>
<pre class="" style="font-size:12px;line-height:14.390625px;margin-top:0px;margin-bottom:0px;padding:0px;background-image:none;vertical-align:top;color:rgb(0,0,0)"><span style="font-family:arial"><br></span></pre><pre class="" style="font-size:12px;line-height:14.390625px;margin-top:0px;margin-bottom:0px;padding:0px;background-image:none;vertical-align:top;color:rgb(0,0,0)">
<span style="font-family:arial">/usr/bin/qmake is the Qt 5 version</span></pre><pre class="" style="font-size:12px;line-height:14.390625px;margin-top:0px;margin-bottom:0px;padding:0px;background-image:none;vertical-align:top;color:rgb(0,0,0)">
<span style="font-family:arial">/usr/bin/qmake-qt4 is a symlink to /usr/lib/qt4/bin/qmake</span></pre><pre class="" style="font-size:12px;line-height:14.390625px;margin-top:0px;margin-bottom:0px;padding:0px;background-image:none;vertical-align:top;color:rgb(0,0,0)">
<span style="font-family:arial"><br></span></pre><pre class="" style="font-size:12px;line-height:14.390625px;margin-top:0px;margin-bottom:0px;padding:0px;background-image:none;vertical-align:top;color:rgb(0,0,0)"><span style="font-family:arial">(same for the other tools)</span></pre>
<pre class="" style="font-size:12px;line-height:14.390625px;margin-top:0px;margin-bottom:0px;padding:0px;background-image:none;vertical-align:top;color:rgb(0,0,0)"><span style="font-family:arial"><br></span></pre><pre class="" style="font-size:12px;line-height:14.390625px;margin-top:0px;margin-bottom:0px;padding:0px;background-image:none;vertical-align:top;color:rgb(0,0,0)">
<span style="font-family:arial">So I was expecting "qmake" on the command line to give me the Qt 5 version, but was surprised that startkde had changed the PATH like this.</span></pre><pre class="" style="font-size:12px;line-height:14.390625px;margin-top:0px;margin-bottom:0px;padding:0px;background-image:none;vertical-align:top;color:rgb(0,0,0)">
<span style="font-family:arial"><br></span></pre><pre class="" style="font-size:12px;line-height:14.390625px;margin-top:0px;margin-bottom:0px;padding:0px;background-image:none;vertical-align:top;color:rgb(0,0,0)"><span style="font-family:arial">I've later learned from Thiago that the Arch setup is out-of-policy, and that if they want to support both Qt 4 and Qt 5 they should install qtchooser.</span></pre>
<pre class="" style="font-size:12px;line-height:14.390625px;margin-top:0px;margin-bottom:0px;padding:0px;background-image:none;vertical-align:top;color:rgb(0,0,0)"><span style="font-family:arial"><br></span></pre><pre class="" style="font-size:12px;line-height:14.390625px;margin-top:0px;margin-bottom:0px;padding:0px;background-image:none;vertical-align:top;color:rgb(0,0,0)">
<span style="font-family:arial">But I'm still curious about the reason for requiring the Qt tools to be in the PATH.</span></pre><pre class="" style="font-size:12px;line-height:14.390625px;margin-top:0px;margin-bottom:0px;padding:0px;background-image:none;vertical-align:top;color:rgb(0,0,0)">
<span style="font-family:arial"><br></span></pre><pre class="" style="font-size:12px;line-height:14.390625px;margin-top:0px;margin-bottom:0px;padding:0px;background-image:none;vertical-align:top;color:rgb(0,0,0)"><font face="arial">Cheers,</font></pre>
<pre class="" style="font-size:12px;line-height:14.390625px;margin-top:0px;margin-bottom:0px;padding:0px;background-image:none;vertical-align:top;color:rgb(0,0,0)"><font face="arial">Elvis Stansvik</font></pre></div></div>