Summary: | PATH does not include QT directories and QTDIR not set | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Steve Flack <steve_flack> |
Component: | Current packages | Assignee: | Dan Armak (RETIRED) <danarmak> |
Status: | RESOLVED FIXED | ||
Severity: | major | ||
Priority: | High | ||
Version: | 1.2 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Steve Flack
2002-07-20 05:29:50 UTC
Actually this is only a problem in KDE. If I printenv in konsole (in KDE) I get a different set of environment variables (which are wrong) than I do if I do it in a text console (ALT-F2). The printenv in a CLI login has the correct environment variables. profile.env doesn't seem to be being read for KDE... Additional info... This is what I get for printenv in a konsole... bash-2.05a$ printenv PWD=/home/steve KONSOLE_DCOP=DCOPRef(konsole-5127,konsole) GS_LIB=/home/steve/.kde3/share/fonts SESSION_MANAGER=local/caveman.local:/tmp/.ICE-unix/4904 KDEDIRS=/usr/kde/3: KDEHOME=/home/steve/.kde3 KONSOLE_DCOP_SESSION=DCOPRef(konsole-5127,session-1) KDEDIR=/usr/kde/3 USER=steve KDE_MULTIHEAD=false KDEMAINDIR=/usr/kde/3 GTK_RC_FILES=/etc/gtk/gtkrc:/home/steve/.gtkrc:/home/steve/.gtkrc-kde XDM_MANAGED=/var/run/xdmctl/xdmctl-:0,maysd,mayfn,sched COLORTERM= DISPLAY=:0.0 LOGNAME=steve SHLVL=3 _=/usr/bin/printenv SHELL=/bin/bash XSESSION=kde-3.0.2 HOME=/home/steve TERM=xterm PATH=/usr/kde/3/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin bash-2.05a$ ...No java vars, no QTDIR, wrong PATH If I run 'source /etc/profile' followed by 'printenv' I get steve@caveman steve $ printenv PWD=/home/steve XINITRC=/etc/X11/xinit/xinitrc KONSOLE_DCOP=DCOPRef(konsole-5131,konsole) JAVAC=/opt/sun-jdk-1.4.0/bin/javac GS_LIB=/home/steve/.kde3/share/fonts PAGER=/usr/bin/less SGML_CATALOG_FILES=/etc/sgml/sgml-ent.cat:/etc/sgml/sgml-docbook.cat:/etc/sgml/openjade-1.3.1.cat:/etc/sgml/sgml-docbook-3.1.cat:/etc/sgml/dsssl-docbook-stylesheets.cat HOSTNAME=caveman.local SESSION_MANAGER=local/caveman.local:/tmp/.ICE-unix/4904 KDEDIRS=/usr/kde/3: KDEHOME=/home/steve/.kde3 QTDIR=/usr/qt/3 CLASSPATH=/opt/sun-jdk-1.4.0/jre/lib/rt.jar KONSOLE_DCOP_SESSION=DCOPRef(konsole-5131,session-1) MANPATH=/usr/share/man:/usr/X11R6/man:/usr/qt/3/man LESSOPEN=|lesspipe.sh %s PS1=\[\033[01;32m\]\u@\h \[\033[01;34m\]\W \$ \[\033[00m\] KDEDIR=/usr/kde/3 USER=steve KDE_MULTIHEAD=false KDEMAINDIR=/usr/kde/3 CVS_RSH=ssh QMAKESPEC=linux-g++ INPUTRC=/etc/inputrc GTK_RC_FILES=/etc/gtk/gtkrc:/home/steve/.gtkrc:/home/steve/.gtkrc-kde XDM_MANAGED=/var/run/xdmctl/xdmctl-:0,maysd,mayfn,sched EDITOR=/usr/bin/nano CONFIG_PROTECT_MASK=/etc/gconf JAVA_HOME=/opt/sun-jdk-1.4.0 COLORTERM= DISPLAY=:0.0 LOGNAME=steve SHLVL=3 MOZILLA_FIVE_HOME=/usr/lib/mozilla INFODIR=/usr/share/info:/usr/X11R6/info SHELL=/bin/bash XSESSION=kde-3.0.2 JDK_HOME=/opt/sun-jdk-1.4.0 HOME=/home/steve TERM=xterm PATH=/bin:/usr/bin:/usr/local/bin:/opt/rar/bin:/opt/RealPlayer8:/usr/X11R6/bin:/opt/sun-jdk-1.4.0/bin:/opt/sun-jdk-1.4.0/jre/bin:/usr/qt/3/bin:/usr/kde/3/bin:/usr/kde/3/bin SANE_CONFIG_DIR=/etc/sane.d _=/usr/bin/printenv steve@caveman steve $ Which is correct...notice also the change of prompt. Now I get the colored 'steve@caveman steve$' where I was getting the monochrome 'bash-2.05 $' Any clues???? Adding source /etc/profile to my .bashrc file fixes the problem. Am I the only person with the problem? That only seems to fix the bash konsole not the environment in which KDE apps are run...so kdevelop still doesn't have the QT helper apps in it's path and they can't be run from the menu items (designer can be run from the konsole by using 'designer' but it's full path '/usr/qt/3/designer' has to be given for the K-menu item to work) konsole: you should run it as "konsole -ls", this starts a login shell and automatically sources /etc/profile etc. kde/alt+f2: I think you have a $KDEDIR/bin/startkde which says #!/bin/sh where the latest one says "#!/bin/sh --login" (and so starts a login session with the right env). Please check that, if you don't have --login there add it. Dan, Thanks for getting back to me. I am unable to check this as I have just re- installed with a GCC3.2pre based Gentoo. Thanks anyway. What's the status on this? Can I close it? Yes, close it. |