Registered Member
|
Hello:
When I install shared libraries in the /opt directory, I add the LD_LIBARY_PATH to /etc/bash.bashrc. Also when I install programs that uses these libraries I add the PATH to the same /etc/bash.bashrc. When I open Konsole and call the programs, all works fine. But if I put a link to a program (that uses some of the installed shared libraries) in Kickoff, it doesn't works because the shared libraries can not be located. Apparently Kickoff doesn't sources the /etc/bash.bashrc file. If I want to run the program from Kickoff I need to put the shared libraries path into a file in /etc/ld.so.conf.d/. But I find more confortable to work only with /etc/bash.bashrc instead of ld.conf. Could be Kickoff configured in order to read /etc/bash.bashrc /etc/profile of equivalent? I'm using KDE 4.13 in Debian Sid |
|
afair /etc/profile should work, but /etc/bash.bashrc will certainly not (kickoff/krunner is not bash - not even zsh would read /etc/bash.bashrc)
for kde only, scripts in ~/.kde/env can be used to manipulate the session environment vars |
Registered Member
|
Thank you for your answer, luebking. I put the content of the /etc/bash.bashrc in /etc/profile but the Kickoff launcher does not work again.
|
|
I know it's a stupid question, but did you log out and in again after putting stuff int /etc/profile?
This might be DM related (rather than provided through startkde) - in very doubt, put an executable script into ~/.kde/env
|
Registered Member
|
Yes, I've restarted the laptop, but it not works. I've created a script called 'loadprofile' in $HOME/.kde/env as you suggested (and set as executable chmod 755 loadprofile), I've restarted again, but Kickoff still doesn't work. And, surprisingly, Konsole doesn't sources the /etc/profile in a correct way: although the PATH and other variables are correctly set, the 'alias' definitions, such as 'alias CC=g++' is not recognized. Another problem is that if you log as root from Konsole using 'su', the /etc/profile is not loaded
|
|
/etc/profile is only sourced by login shells, try "bash -l"
|
Administrator
|
Please note that files in ~/.kde4/env/ will only be sourced if they are executable and have a *.sh extension. You may wish to verify both these requirements are met.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered users: Bing [Bot], blue_bullet, Google [Bot], rockscient, Yahoo [Bot]