[mythtv-users] Re: autostarting mythfrontend under GNOME?

Thom Sturgill tsturgil at ircc.net
Tue Mar 8 21:23:47 UTC 2005


Not to beat a dead horse too badly, but determining whether you are in an
xterm is trivial.

.bash_profile:

   if [ "$TERM" != "xterm" ]
   then
      ./startmyth &
   fi

then write a simple startmyth script (make sure its executable):

   #!/bin/bash

   sleep 10  # let gnome finish startup
   /usr/bin/mythfrontend

Of course adding it to .xsession works equally, but more people are adept
at scripts than configuring X.

- Thom


> Thom Sturgill <tsturgil at ircc.net> writes:
>
>>> On Tue, Mar 08, 2005 at 09:38:59AM -0500, Thom Sturgill wrote:
>>>> > docs are on autostarting mythfrontend under KDE, any way to do that
>>>> > under GNOME, too?
>>>
>>>> What's wrong with calling it from .bash_profile ?
>>>
>>> I really like mythfrontend, but not as much as to call a copy of it on
>>> each invocation of the bash :)
>
>> In other words, unless bash is executed with the specific -l or --login
>> argument, these files are ONLY executed at login.
>
> Right:  including login via ssh, for example!  I doubt Alex wants
> one copy running for each login.  He wants one for each X session.
> Completely different beast.
>
> I use .xsession.  .xinitrc might work too.  But I don't know about
> Gnome.
>
> Dan
>
>
> ------------------------------
>




More information about the mythtv-users mailing list