This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Kickoff and bashrc

Tags: None
(comma "," separated)
jgpallero
Registered Member
Posts
3
Karma
0

Kickoff and bashrc

Tue Jul 01, 2014 5:22 pm
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
luebking
Karma
0

Re: Kickoff and bashrc

Tue Jul 01, 2014 7:53 pm
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
jgpallero
Registered Member
Posts
3
Karma
0

Re: Kickoff and bashrc

Tue Jul 01, 2014 8:36 pm
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.
luebking
Karma
0

Re: Kickoff and bashrc

Tue Jul 01, 2014 9:06 pm
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

Code: Select all
#!/bin/sh
. /etc/profile
jgpallero
Registered Member
Posts
3
Karma
0

Re: Kickoff and bashrc

Tue Jul 01, 2014 9:27 pm
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
luebking
Karma
0

Re: Kickoff and bashrc

Tue Jul 01, 2014 9:55 pm
/etc/profile is only sourced by login shells, try "bash -l"
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Kickoff and bashrc

Wed Jul 02, 2014 7:31 am
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]


Bookmarks



Who is online

Registered users: Bing [Bot], blue_bullet, Google [Bot], rockscient, Yahoo [Bot]