.bash_profile and xdm/KDE on Debian etch

From: Scott Denlinger (sbd_at_u.arizona.edu)
Date: 10/19/05

  • Next message: Jan C. Nordholz: "Re: apt-get update problems"
    Date: Wed, 19 Oct 2005 13:44:34 -0700
    To: debian-user@lists.debian.org
    
    

    I recently made the switch to XOrg from XFree86 when I updated my Debian testing
    box, and since I prefer to log into a shell then use 'startx' to get into X, I
    used 'update-rc.d' to get rid of xdm in init.d. Before I did this, though, I
    noticed some interesting behavior. If I logged into my machine from xdm, all
    the $PATH variables I configured in my .bash_profile file didn't get loaded
    when I opened a terminal window in KDE. The only way I could get them
    initialized was to 'source .bash_profile' after I opened a bash terminal
    window.

    However, once I removed xdm and started X/KDE from the bash shell using
    'startx', all my $PATH values were initialized in my xterm windows in X. I'm
    sure this has to do with the fact that I was already in a bash shell before I
    started X/KDE, but why would my .bash_profile file not get read when I started
    KDE from xdm? Ultimately, I always want to start X from a shell, so it's not a
    critical issue for me, but in case I change my mind at some point, is there
    something about the way xdm or KDE starts which keeps it from sourcing a
    .bash_profile file? How can I configure xdm or KDE to read in these files if
    they don't?

    Thanks.

    Scott Denlinger
    sbd@u.arizona.edu

    -- 
    To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: Jan C. Nordholz: "Re: apt-get update problems"

    Relevant Pages

    • Re: [opensuse] what you can do with KDE3 that you cant do with KDE4.
      ... Workplace shell. ... XFile features: ... and in KDE you can define what directory an app will start in. ... I'm sire OS/2 was great in its time, ...
      (SuSE)
    • [kde] Re: How to set the KDE path?
      ... .bash_profile is for bash as the name implies. ... Would it not make sense for KDE to respect that? ... This is executed by a shell interpreter, ... The process itself then reads the environment through system API, ...
      (KDE)
    • Re: [kde] startup, .profile, env.vars., etc.
      ... environmental variables set? ... starts a full KDE session. ... However the shell running startkde might read files during its startup, ... environment than having it started through KDM, GDM, etc. ...
      (KDE)
    • Re: [SLE] 9.1 is sloooooowwww
      ... >> It boots in about the same amount of time, till it gets to the login ... After that the login process is much slower, when KDE gets ... On my machine it takes about 37 seconds for the shell to come up. ...
      (SuSE)
    • Re: foreign ip in /var/log/wtmp
      ... OK ssh logs via one process ... OK - it's the stupid KDE Display manager that's the problem. ... The shell reads it's ... However, people find the command line difficult, and want the GUI. ...
      (comp.os.linux.security)