File apply-kgamma-settings-on-login.patch of Package kgamma
From: Wolfgang Bauer <wbauer@tmo.at>
Date: Tue, 24 Jun 2014 10:54:40 +0000
Subject: Apply user setting at login/startup
X-Git-Url: http://quickgit.kde.org/?p=kgamma.git&a=commitdiff&h=82a264a08c2356f68c76ca6dafebe139639caf56
---
Apply user setting at login/startup
KGamma's saved user settings are not applied on startup/login. The user
has to enter the KCM to apply them.
This makes it rather useless, as not even saving the settings
system-wide really works any more. (this requires an xorg.conf which
normally doesn't exist nowadays)
This patch uses kcminit to apply these settings again on login.
Apparently this has been forgotten to be adapted when moving/porting
kgamma to KDE4.
BUG: 218668
FIXED-IN: 4.13.3
REVIEW: 118898
(cherry picked from commit abb774fa60709102cc86daeef035cc8d59a9ef09)
---
--- a/kcmkgamma/kgamma.cpp
+++ b/kcmkgamma/kgamma.cpp
@@ -614,7 +614,7 @@
extern "C"
{
// Restore the user gamma settings
- void init_kgamma()
+ KDE_EXPORT void kcminit_kgamma()
{
bool ok;
XVidExtWrap xv(&ok);
--- a/kcmkgamma/kgamma.desktop
+++ b/kcmkgamma/kgamma.desktop
@@ -194,11 +194,12 @@
X-KDE-Keywords[zh_CN]=KGamma, kgamma, Gamma, gamma,伽马,伽玛
X-KDE-Keywords[zh_TW]=KGamma, kgamma, Gamma, gamma
Type=Service
-X-KDE-ServiceTypes=KCModule
+X-KDE-ServiceTypes=KCModule,KCModuleInit
X-KDE-Test-Module=true
X-KDE-Library=kcm_kgamma
+X-KDE-Init-Symbol=kgamma
X-KDE-ParentApp=kcontrol
X-KDE-System-Settings-Parent-Category=display