xsession: Don't add Qt path if it's in /usr.

No need to re-add /usr if it's already in PATH (and doing so can even
lead to changing a user's preferred PATH order, even though it's
possible to work around that issue by playing with user_path in
.config/kde-env-user.sh).

BUG:312122
FIXED-IN:1.16
wilder
Michael Pyne 13 years ago
parent 8028d32d4b
commit 3dd8733fee
  1. 13
      sample-kde-env-master.sh

@ -90,11 +90,14 @@ path_add()
# user-specific variables being set already. # user-specific variables being set already.
libname="lib$lib_suffix" libname="lib$lib_suffix"
# Now add the necessary directories, starting with Qt. # Now add the necessary directories, starting with Qt (although we don't add Qt
path_add "PATH" "$qt_prefix/bin"; # if it's system Qt to avoid moving /usr up in the PATH.
path_add "LD_LIBRARY_PATH" "$qt_prefix/$libname"; if test "x$qt_prefix" != "x/usr"; then
path_add "PKG_CONFIG_PATH" "$qt_prefix/$libname/pkgconfig"; path_add "PATH" "$qt_prefix/bin";
path_add "MANPATH" "$qt_prefix/share/man"; path_add "LD_LIBRARY_PATH" "$qt_prefix/$libname";
path_add "PKG_CONFIG_PATH" "$qt_prefix/$libname/pkgconfig";
path_add "MANPATH" "$qt_prefix/share/man";
fi
# Now add KDE-specific paths. # Now add KDE-specific paths.
path_add "PATH" "$kde_prefix/bin"; path_add "PATH" "$kde_prefix/bin";

Loading…
Cancel
Save