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

Derek Atkins warlord at MIT.EDU
Wed Feb 15 14:02:33 UTC 2006

Robert Tsai <rtsai1111 at comcast.net> writes:

>>  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

Um, the reporter said "without needing to change the DB settings" (see
above, from your own quoted message).  Your suggestion, um, changes DB

Not that I necessarly believe that your wrapper suggestion isn't
correct, but it doesn't meet the stated requirements of the original

> --Rob


       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available

More information about the mythtv-dev mailing list