Opened 17 years ago
Closed 17 years ago
Last modified 10 years ago
#2932 closed defect (fixed)
mythtv-setup tries to open non-existend theme "Standard"
Reported by: | Owned by: | stuartm | |
---|---|---|---|
Priority: | minor | Milestone: | 0.21 |
Component: | mythtv | Version: | head |
Severity: | medium | Keywords: | |
Cc: | Ticket locked: | no |
Description
When I run mythtv-setup, it tries to open a theme called "Standard", which doesn't exist, and falls back to GANT. After this, mythfrontend also uses GANT and I have to reset it to the desired theme.
I created a symlink called "Standard" as a workaround.
$ echo "select * from settings;" | mysql -u mythtv -p mythconverg | grep "Theme.*Iulius" Enter password: Theme Iulius dose $ strace -f mythtv-setup 2>&1 | grep Standard access("/home/scorpion/.mythtv/themes/Standard", F_OK) = -1 ENOENT (No such file or directory) access("/usr/share/mythtv/themes/Standard", F_OK) = 0
I found the culprit in my database:
$ echo "select * from settings;" | mysql -u mythtv -p mythconverg | grep "Standard" Enter password: MenuTheme Standard dose
Somehow the setup uses MenuTheme? instead of Theme.
Attachments (1)
Change History (6)
comment:1 Changed 17 years ago by
Milestone: | unknown → 0.21 |
---|---|
Owner: | changed from Isaac Richards to stuartm |
Status: | new → assigned |
comment:2 Changed 17 years ago by
Main problem is the assumption in MythContext::FindThemeDir? that we're dealing with 'Theme' when we may be handling 'MenuTheme?'.
Changed 17 years ago by
Attachment: | menutheme_fix.diff added |
---|
comment:4 Changed 17 years ago by
The patch fixes the broken behaviour for me:
$ echo "select * from settings;" | mysql -u mythtv -p mythconverg | grep -i MenuTheme Enter password: MenuTheme default dose
mythtv-setup now uses the correct menu theme and doesn't fall back to GANT anymore.
comment:5 Changed 17 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Split MythContext::FindThemeDir? into MythContext::FindMenuThemeDir?. In the event that the menu theme is missing we fall back to the 'default' menu theme.
In the appearance settings we no longer save the translation of 'default' to the database for MenuTheme?.
We're translating MenuTheme? when we shouldn't be (Standard is the translation of default in several countries).