Opened 20 years ago
Closed 20 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)
Change History (7)
by , 20 years ago
Attachment: | switch_for_overriding_RunFrontendInWindow.patch added |
---|
comment:1 by , 20 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
Waiting on slightly reworked patch.
by , 20 years ago
Attachment: | switch_for_overriding_RunFrontendInWindow.v2.patch added |
---|
Improved version.
comment:2 by , 20 years ago
Resolution: | invalid |
---|---|
Status: | closed → reopened |
Attached a patch which moves the map to the private data object and removes the unneccessary lock.
comment:3 by , 20 years ago
Owner: | changed from | to
---|---|
Status: | reopened → new |
Assigning to myself per discussion with ijr.
comment:4 by , 20 years ago
Status: | new → assigned |
---|
comment:5 by , 20 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
(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.
the patch