Re: .bash_profile problems under gnome

From: s. keeling (keeling_at_spots.ab.ca)
Date: 06/06/04

  • Next message: Jerome R. Acks: "problems in stalling 2.6.5 kernel"
    Date: Sat, 5 Jun 2004 18:05:27 -0600
    To: debian-user@lists.debian.org
    
    

    Incoming from Adam Siepel:
    > Hi -- I'm using gdm, gnome, and bash, and can't seem to get things set up
    > so my .bash_profile gets read properly upon login. I've seen some messages
    > on various lists that advised explicitly sourcing .bash_profile in
    > .xsession for proper startup -- problem is related to Xsession being run as
    > /bin/sh rather than /bin/bash, I think. This seems like kind of an awkward
    > soln, but I can live with it. Now I'm finding, though, that my .xsession
    > *also* doesn't seem to be getting read, despite that everything seems to be
    > in order (/etc/X11/Xsession okay, no ~/.Xsession in the way,
    > allow-user-xsession in Xsession.options, etc.).

    How X starts up can be a mystery. I use "startx" which uses my
    ~/.xsession. Others do the same and report ~/.xsession is ignored in
    favour of ~/.xinitrc.

    With that in mind, change the file in question. The first line should
    be:

      #!/bin/bash --login

    which will make it a login shell, and your bash startup files will be
    sourced. The file in question must be made executable (ie., chmod 755 ~/.xsession).

    -- 
    Any technology distinguishable from magic is insufficiently advanced.
    (*)               http://www.spots.ab.ca/~keeling 
    - -
    -- 
    To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: Jerome R. Acks: "problems in stalling 2.6.5 kernel"

    Relevant Pages

    • Re: Blacklisting IPs
      ... >>names (probably with the login name used as passwd). ... no reason you should leave the doors open from ranges you know can only ... I have a script for picking out countries from the ... delegation lists: ...
      (freebsd-questions)
    • Re: PAM issues in -CURRENT
      ... wrong when building and installing world and/or kernel? ... I think it's mostly the port software. ... It does it for EVERY login. ... People using reply to all on lists, must think I need 2 copies. ...
      (freebsd-questions)
    • Re: remote access question - GOT IT, but...
      ... selectively populate the workstation list dependent on username. ... >>Is it the RWW login screen? ... >>Les Connor [SBS MVP] ... It gives a lists of ...
      (microsoft.public.windows.server.sbs)
    • Re: AIX lsuser equivalent
      ... color=#800080>It just provides a way to get the encrypted passwords out of the ... IBM AIX Discussion List ... the only file on the system that stores login time and date info, unless you dump it out of wtmp on a regular basis... ... that lists users info that I can find ...
      (AIX-L)
    • Re: generate group lists with names instead of ids
      ... seems like cat /etc/passwd gives me the list of login names and ... would give me the real life name assigned under that id. ... like to replace the login names from the group lists with Real Life ... but the challenge is to pick it up and replace the login ids with the ...
      (comp.unix.shell)