Bug#948272: klickety: Theme does not save
Package: klickety
Version: 4:18.04.1-1
Severity: normal
Tags: upstream
Dear maintainers,
Klickety comes in two forms - 'klickety' and 'klickety --KSameMode'.
Both start up with different themes.
For both of them, I tried changing the theme through Settings >
Configure Klickety... > Theme. When I exit the game and start it again,
it goes back to the default.
Other options like 'Show bound lines' and 'Background' are saved
properly.
I tried looking at the source code, but I am not skilled enough to
discern the cause. It seems like saving the theme is handled by the
theme provider, rather than the game.
> static KgThemeProvider* provider()
> {
> //TODO: Do we want to store separate theme choices for Klickety and KSame?
> const QLatin1String defaultTheme =
> Settings::self()->config()->name() == QLatin1String("ksamerc")
> ? QLatin1String("ksame") : QLatin1String("default");
> KgThemeProvider* prov = new KgThemeProvider;
> prov->discoverThemes("appdata", QStringLiteral("themes"), defaultTheme);
> return prov;
> }
This code block suggests I should look at ksamerc, but my
$HOME/.config/ksamerc is empty, and my $HOME/.config/klicketyrc has no
mention of the theme (but it has my other settings).
I hope we can find the cause of this. Thank you..!
-- System Information:
Debian Release: 10.2
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable'), (500, 'oldstable')
Architecture: amd64 (x86_64)
Kernel: Linux 4.19.0-6-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE= (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages klickety depends on:
ii kio 5.54.1-1
ii libc6 2.28-10
ii libkf5configcore5 5.54.0-1+deb10u1
ii libkf5configgui5 5.54.0-1+deb10u1
ii libkf5configwidgets5 5.54.0-1
ii libkf5coreaddons5 5.54.0-1
ii libkf5crash5 5.54.0-1
ii libkf5dbusaddons5 5.54.0-1
ii libkf5i18n5 5.54.0-1
ii libkf5kdegames7 4:18.04.0-1
ii libkf5kiowidgets5 5.54.1-1
ii libkf5widgetsaddons5 5.54.0-1
ii libkf5xmlgui5 5.54.0-1
ii libqt5core5a 5.11.3+dfsg1-1+deb10u1
ii libqt5gui5 5.11.3+dfsg1-1+deb10u1
ii libqt5widgets5 5.11.3+dfsg1-1+deb10u1
ii libstdc++6 8.3.0-6
ii perl 5.28.1-6
Versions of packages klickety recommends:
ii khelpcenter 4:18.04.0-1
klickety suggests no packages.
-- no debconf information
Reply to: