Re: environment not being passed to programs called directly from kde
Hi, This might be unrelated, but I found that sometimes you actually need to go into /etc/X11/Xsession.d and create a file that will export the variables as you would normally in a .bashrc. The need thing is that when your X session starts it sources the files in this directory. -- Alwyn Schoeman SMART Money Inc. The clock on the wall keeps moving, time stands still... No matter how the dice may fall, someone else always gets to call the number... pgpRW81tMtJww.pgp Description: PGP signature
environment not being passed to programs called directly from kde
Hello. I discovered this by trying to get the euro displayed in konsole, it worked when I started konsole from the command line, because it inherited my environment from bash. However when I click on the konsole link in the Panel, or type in konsole in the Application Launcher, the euro will not work, it just displays as ? (question mark). To discover what environment KDE is passing to these applications I type in env kde.env in the Application Launcher. (And diff it with a corresponding bash.env, and trim out the irrelevant details.) bash.env contains: MM_CHARSET=ISO-8859-15 [EMAIL PROTECTED] kde.env contains: LANG=C Even when I specify Germany in the control panel, and German as the language, KDE always passes LANG=C to its applications. I have no file (except maybe /etc/environment) that contains a line like LANG=C. Certainly my .xsession contains [EMAIL PROTECTED] As a hack, I made a desktop icon with this as the command line and it works: [EMAIL PROTECTED] konsole (First I tried to change the konsole launcher in the panel to a similar command line, but every time I CLOSED konsole I got KDEinit could not run /bin/sh) Any ideas how to make KDE pass the correct environment on to apps that it directly calls? I read a doc online that said choose iso8859-15 in the Country and Language control panel, but I dont see that there, I just see German, English (UK) and English US. All 3 settings dont change the fact that KDE passes LANG=C to applications. I use kde 3.0.3 Thanks Kurt Häusler PS, I am a programmer looking for work in germany, check out my cv. http://cratos.ath.cx/~kza/cv.html
Re: environment not being passed to programs called directly from kde
[EMAIL PROTECTED] wrote: Hello. I discovered this by trying to get the euro displayed in konsole, it worked when I started konsole from the command line, because it inherited my environment from bash. However when I click on the konsole link in the Panel, or type in konsole in the Application Launcher, the euro will not work, it just displays as ? (question mark). To discover what environment KDE is passing to these applications I type in env kde.env in the Application Launcher. (And diff it with a corresponding bash.env, and trim out the irrelevant details.) bash.env contains: MM_CHARSET=ISO-8859-15 [EMAIL PROTECTED] kde.env contains: LANG=C Even when I specify Germany in the control panel, and German as the language, KDE always passes LANG=C to its applications. I have no file (except maybe /etc/environment) that contains a line like LANG=C. Certainly my .xsession contains [EMAIL PROTECTED] Is your LANG exported? KDE doesn't seem to use it anyway (X does in some obscure ways use LC_ abd LANG vars, but KDE honors the control center settings AFAIK)... Also, double check that there is nothing overriding the LANG anywhere in the way (i had some problems with this, eg. 'echo blah | less' launched fortune :). Last resort is to create /usr/local/bin/your_app shellscript that sets LANG and execs /usr/bin/your_app (this should work if /usr/local/bin is before /usr/bin in your PATH)... This is similar to your hack, probably little bit cleaner (and a bit less probable to work). Thanks Kurt Häusler -- --- Yenar Calentaure mail: yenar(at)host.sk homepage: http://yenar.host.sk --- The universe is entering maintenance mode in 2 minutes. Please logout. -- Your administrator ---