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

Should ~/.profile run at login?

Tags: None
(comma "," separated)
craq
Registered Member
Posts
13
Karma
0
OS

Should ~/.profile run at login?

Mon Sep 07, 2009 4:24 pm
Hi,
I was originally under the impression that ~/.profile would run when I logged into KDE, the same as it does when I go to a login-shell (e.g. with Ctrl+Alt+F1-6). Since I also input my username and password to login to KDE I thought it was also a 'login-shell'. It now seems I was mistaken, but it would be good if someone could confirm this?

Secondly, is there a way to set global variables at login? Specifically I want to set LD_LIBRARY_PATH... I know I could do this for each terminal with bashrc, and have the same effect - its just a matter of interest whether it can be done globally too.
zenwalker
Registered Member
Posts
49
Karma
0
OS

Re: Should ~/.profile run at login?

Mon Sep 07, 2009 4:31 pm


“Live your life honestly—if you don’t, you always have to remember to not be yourself”

Image
http://www.zenwalk.org
User avatar
Ahmad Samir
Registered Member
Posts
127
Karma
0
OS

Re: Should ~/.profile run at login?

Mon Sep 07, 2009 8:39 pm
zenwalker wrote:http://hacktux.com/bash/bashrc/bash_profile

An excellent read, thank you :)
User avatar
kap4lin
Registered Member
Posts
39
Karma
0
OS
craq wrote:Specifically I want to set LD_LIBRARY_PATH... I know I could do this for each terminal with bashrc, and have the same effect - its just a matter of interest whether it can be done globally too.

Special behavior of LD_LIBRARY_PATH (L_L_P): (on a RedHat 5.3 w/ KDE 3.5.4): Assuming you've logged into KDE and start a konsole. It does not work, if you define L_L_P in .bash_profile. It has to be defined in .bashrc. As if every new konsole (window or tab) clears out l_L_P. Only L_L_P behaves in this way (may be PKG_CONFIG_PATH behaves similarly too). Other variables, such as CDPATH, HIST*, FIGNORE, defined in .bash_profile are respected though.


Sidux 2010.01 (Debian/Sid) - Intel i5 M 540, 4 GB RAM, Nvidia NVS 3100M on Lenovo T410
craq
Registered Member
Posts
13
Karma
0
OS

Re: Should ~/.profile run at login?

Fri Oct 02, 2009 11:23 am
weird, but at least there's an explanation. Thanks kap4lin.


Bookmarks



Who is online

Registered users: abc72656, Bing [Bot], daret, Google [Bot], lockheed, Sogou [Bot], Yahoo [Bot]