How to get profile to run when starting gnome terminal

I know there is a way to do it, but I haven't found the right
piece of doc yet I guess.

How do I get /etc/profile and friends to be run when gnome
starts up a terminal session?

TIA!
Dennis

--

0

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

How to get profile to run when starting gnome terminal

On Sat, Mar 31, 2007 at 10:52:01AM -0500, Dennis G. Wicks wrote:
> I know there is a way to do it, but I haven't found the right
> piece of doc yet I guess.
>
> How do I get /etc/profile and friends to be run when gnome
> starts up a terminal session?
>
> TIA!
> Dennis
>

/etc/profile should automatically run. Try running GNOME-Terminal with
"-e bash" and see if that works.

--

How to get profile to run when starting gnome terminal

Michael Pobega wrote:
> On Sat, Mar 31, 2007 at 10:52:01AM -0500, Dennis G. Wicks wrote:
>
>> I know there is a way to do it, but I haven't found the right
>> piece of doc yet I guess.
>>
>> How do I get /etc/profile and friends to be run when gnome
>> starts up a terminal session?
>>
>> TIA!
>> Dennis
>>
>>
>
> /etc/profile should automatically run. Try running GNOME-Terminal with
> "-e bash" and see if that works.
>
>
Michael,

That wasn't it, but it put me on the track. Here's how in case
you ever need to do it.

1. Open a terminal window.
2. Click "Edit"
3. Click "Current Profile"
4. Select "Title and Command" tab
5. Mark check box "Run command as login shell" under "Command".
6. Close the edit window
7. Close the terminal window
8. Open a terminal window again and your profiles will have been run!

Thanks for getting me pointed in the right direct.
I was thinking of an entry in a .rc or .ini file or some such.

Thanks again!
Dennis

--

How to get profile to run when starting gnome terminal

On Sat, Mar 31, 2007 at 10:22:34PM -0500, Dennis G. Wicks wrote:
> Michael Pobega wrote:
> >On Sat, Mar 31, 2007 at 10:52:01AM -0500, Dennis G. Wicks wrote:
> >
> >>I know there is a way to do it, but I haven't found the right
> >>piece of doc yet I guess.
> >>
> >>How do I get /etc/profile and friends to be run when gnome
> >>starts up a terminal session?
> >>
> >>TIA!
> >>Dennis
> >>
> >>
> >
> >/etc/profile should automatically run. Try running GNOME-Terminal with
> >"-e bash" and see if that works.
> >
> >
> Michael,
>
>
> That wasn't it, but it put me on the track. Here's how in case
> you ever need to do it.
>
> 1. Open a terminal window.
> 2. Click "Edit"
> 3. Click "Current Profile"
> 4. Select "Title and Command" tab
> 5. Mark check box "Run command as login shell" under "Command".
> 6. Close the edit window
> 7. Close the terminal window
> 8. Open a terminal window again and your profiles will have been run!
>
> Thanks for getting me pointed in the right direct.
> I was thinking of an entry in a .rc or .ini file or some such.
>
> Thanks again!
> Dennis
>

That would explain it. As far as I know other terminal emulators (i.e.
xterm) execute profiles "out of the box". I never got it working under
GNOME-Terminal myself.

--

Syndicate content