[mythtv] [mythtv-commits] Ticket #1288: a cmdline switch for running mythfrontend in window without changing the setting in DB

Robert Tsai rtsai1111 at comcast.net
Wed Feb 15 13:10:14 UTC 2006


On Wed, Feb 15, 2006 at 08:14:39AM -0000, MythTV wrote:
> #1288: a cmdline switch for running mythfrontend in window without changing the
> setting in DB
> ---------------------+------------------------------------------------------
>  Reporter:  visit0r  |       Owner:  ijr 
>      Type:  patch    |      Status:  new 
>  Priority:  minor    |   Milestone:  0.20
> Component:  mythtv   |     Version:  head
>  Severity:  low      |  
> ---------------------+------------------------------------------------------
>  I needed a way to easily run instances of mythfrontend in windowed mode
>  without needing to change the DB setting. I implemented this by adding a
>  method to MythContext which allows to override any DB settings for the
>  current session (process lifetime) only.
> 
>  The patch attached implements two new switches (-w and -nw) for overriding
>  the 'RunMythInWindow' setting. Please apply or criticize.

Why not just write a wrapper shell script?

mythfrontend-nowindow.sh:

#!/bin/sh

mysql ... -e 'SELECT * FROM SETTINGS ...'	# save off old DB setting
mysql ... -e 'UPDATE settings ...' 	# manipulate DB setting
mythfrontend	# wait for exit
mysql ... -e 'UPDATE settings ...'	# restore old DB setting

--Rob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20060215/12fb1755/attachment.pgp


More information about the mythtv-dev mailing list