Professional Web Applications Themes

Loading .bash_profile under X-Windows - FreeBSD

How can I get terminal under X-Windows to load my .bash_profile (and any other stuff) that is usually loaded when at the initial prompt? A more general question might be: what files (.profile, .login, whatever) and in what order are loaded every I login via a shell and how are these settings propagated up through Gnome desktop? Thanks a lot in advance. -- Kiffin Rex Gish Gouda, The Netherlands...

  1. #1

    Default Loading .bash_profile under X-Windows

    How can I get terminal under X-Windows to load my .bash_profile (and any
    other stuff) that is usually loaded when at the initial prompt?

    A more general question might be: what files (.profile, .login, whatever)
    and in what order are loaded every I login via a shell and how are these
    settings propagated up through Gnome desktop?

    Thanks a lot in advance.

    --

    Kiffin Rex Gish
    Gouda, The Netherlands






    Kiffin Guest

  2. #2

    Default Re: Loading .bash_profile under X-Windows

    He Kiffin,
     

    Run `xterm -ls`. Then read its man page. ;-)

    Bye... Nico
    Nico Guest

  3. #3

    Default Re: Loading .bash_profile under X-Windows

    On Sat, Apr 09, 2005 at 10:40:01AM +0200, Kiffin Gish wrote: 
    .bash_profile, .profile, .login are read on login shells only. When a
    shell is invoked by the exec() syscall, it's name is prepended with a -
    to mean it's a login shell and most shells work differently like reading
    .profile. For example running ps ax|grep bash on my system yields:

    ...
    81288 q1 Is 0:00.02 bash
    88710 q3 Is 0:00.03 -bash (bash)
    ...

    The first shell was just started normally and the second was started as
    a login shell. Connecting to a machine through ssh or logging in on a
    text console starts a login shell, but running an xterm in X-Windows or
    running bash from whatever shell your already in isn't since your
    already logged in. If you start X-Windows with the startx command, your
    login is considered when you first logged in on the text console and
    that same environment is propagated to the gui environment, gnome in
    your case. When you log in from a graphical log in utility, it's a
    little more complicated. The gui login program, whether it be xdm, gdm,
    or kdm starts a shell script which eventually starts your gui
    environment. The problem is that it's not usually the same as your
    login shell, but whatever shell was used to write the script. In some
    cases you can write your own shell script called .xsession or .Xclients
    in your home directory and it can load in .bash_profile and then start
    gnome.
     
     


    --
    I sense much NT in you.
    NT leads to Bluescreen.
    Bluescreen leads to downtime.
    Downtime leads to suffering.
    NT is the path to the darkside.
    Powerful Unix is.

    Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc
    Fingerprint: CEE1 AAE2 F66C 59B5 34CA C415 6D35 E847 0118 A3D2


    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.2.1 (GNU/Linux)

    iD8DBQFCWjFpbTXoRwEYo9IRAnHwAJ43C9RKPEetMZYbjGrnAD N/IJnDTQCeMT+J
    AlhorNw58CWjDZmJAcj8d4Q=
    =0Jra
    -----END PGP SIGNATURE-----

    Loren Guest

Similar Threads

  1. .bash_profile
    By Al Krieger in forum Ubuntu
    Replies: 6
    Last Post: March 5th, 08:45 PM
  2. Loading extentions on windows
    By Rob in forum PHP Development
    Replies: 1
    Last Post: September 10th, 01:52 PM
  3. Problem loading PS-6 into Windows XP
    By Gary A Hughes in forum Adobe Photoshop 7, CS, CS2 & CS3
    Replies: 2
    Last Post: August 12th, 05:10 AM
  4. gdm and /etc/profile, ~/.bash_profile
    By matt zagrabelny in forum Debian
    Replies: 0
    Last Post: July 1st, 10:30 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139