Opened 18 years ago

Closed 18 years ago

#1288 closed patch (fixed)

a cmdline switch for running mythfrontend in window without changing the setting in DB

Reported by: visit0r Owned by: cpinkham
Priority: minor Milestone: 0.20
Component: mythtv Version: head
Severity: low Keywords:
Cc: Ticket locked: no

Description

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.

Attachments (2)

switch_for_overriding_RunFrontendInWindow.patch (4.3 KB) - added by visit0r 18 years ago.
the patch
switch_for_overriding_RunFrontendInWindow.v2.patch (4.0 KB) - added by visit0r 18 years ago.
Improved version.

Download all attachments as: .zip

Change History (7)

Changed 18 years ago by visit0r

the patch

comment:1 Changed 18 years ago by Isaac Richards

Resolution: invalid
Status: newclosed

Waiting on slightly reworked patch.

Changed 18 years ago by visit0r

Improved version.

comment:2 Changed 18 years ago by visit0r

Resolution: invalid
Status: closedreopened

Attached a patch which moves the map to the private data object and removes the unneccessary lock.

comment:3 Changed 18 years ago by cpinkham

Owner: changed from Isaac Richards to cpinkham
Status: reopenednew

Assigning to myself per discussion with ijr.

comment:4 Changed 18 years ago by cpinkham

Status: newassigned

comment:5 Changed 18 years ago by cpinkham

Resolution: fixed
Status: assignedclosed

(In [9158]) Settings Cache related changes.

Move the settings cache variables from MythContext to MythContextPrivate? where I should have put them to begin with.

Merge in a patch by visit0r to provide a framework for overriding settings and initially allow overriding of the RunFrontendInWindow? setting via -w/--windowed or -nw/--no-windowed command line options to mythfrontend. This closes #1288.

I extended visit0r's patch by allowing a generic -O/--override-setting option on the command line of both mythfrontend and mythbackend. This allows overriding any setting on the command line. Multiple setting overrides are supported by using the option multiple times or by specifying multiple key=value pairs with a single -O option. Here are a few examples:

mythfrontend -O Theme=blue mythfrontned -O Theme=Minimalist-wide -O GUIWidth=800,GUIHeight=450

The overridden settings are for that instance of the program and have no effect on the settings screens (ie, the settings screen will still show and allow changing the actual setting in the database.

NOTE: This changes MythContext and the myth binary version, so a "make distclean" will be required.

Note: See TracTickets for help on using tickets.