Find the answer to your Linux question:
Results 1 to 4 of 4
I would like to modify my default path when using a shell terminal while in gnome / kde. I have modified profile in the /etc directory. It works fine if ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Feb 2005
    Location
    Texas
    Posts
    168

    Path settings in gnome / kde shell terminal?


    I would like to modify my default path when using a shell terminal while in gnome / kde.

    I have modified profile in the /etc directory. It works fine if I drop out of X Window and use a command prompt. Just not while using a shell in gnome or kde.

    Thanks, Jeff Greer

  2. #2
    Linux User
    Join Date
    Jan 2004
    Posts
    357
    Try putting something like this

    set PATH=$PATH:/what-you-want-to-add-to-path
    export PATH

    in /home/your-user-name/.bashrc

  3. #3
    Linux Newbie
    Join Date
    Feb 2005
    Location
    Texas
    Posts
    168
    I already have the .bashrc file set the way you suggested. It works when I'm at a character based terminal outside of X Window, just not within a shell terminal in X Window.

    That is why it has be baffeled.

    Thanks, Jeff

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Dec 2006
    Posts
    2
    I had a similar problem. Try the following. When in X-windows open a user terminal. Select edit -> profile from the menu. When the requestor comes up, select the profile you wish to edit (probably default) and select edit. On the edit requestor select the titles and commands tab. There should be a box that says something like "start as login shell". Check this box. This will force the terminal to run /etc/profile. Edit /etc/profile to have the correct path. This "should" work.

Posting Permissions

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