Commit 6dc8da6c authored by David Edmundson's avatar David Edmundson
Browse files

Add kconf update script for ksmserver

Summary:
A config enum value was moved in 506d1807 to
kcfg we should port the value for existing setups.

What used to be the string "default" is now "emptySession"
"default" was not the default. (confusingly)

On an upgrade "default" will fail to load and go to the default which is "restorePreviousLogout" and not "emptySession"

Test Plan: Ran script

Reviewers: #plasma

Subscribers: broulik, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D25634
parent 6175428b
......@@ -20,3 +20,4 @@ install(TARGETS kcm_smserver DESTINATION ${KDE_INSTALL_PLUGINDIR} )
install( FILES kcmsmserver.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} )
add_subdirectory(kconf_update)
#!/usr/bin/env python3
import fileinput
for line in fileinput.input():
if line.startswith("loginMode="):
print ("# DELETE loginMode")
line = line.replace("default", "emptySession")
print (line.strip())
Version=5
Id=ksmserver_update_loginMode_value_default_enum
File=ksmserverrc
Group=General
Script=ksmserver_update_loginMode_value.py,python3
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment