summaryrefslogtreecommitdiffstats
path: root/src/userconfig.cpp
diff options
context:
space:
mode:
authorSimon Rettberg2019-10-18 19:33:20 +0200
committerSimon Rettberg2019-10-18 19:33:20 +0200
commit31777a980e0f4b1b258713158524c0cd9a1dc30f (patch)
tree459c5bff4bcb2ff5c8c4d7b40f47bbcaf5d59f54 /src/userconfig.cpp
parentProperly handle key press events; prevent double-execution (diff)
downloadvmchooser2-31777a980e0f4b1b258713158524c0cd9a1dc30f.tar.gz
vmchooser2-31777a980e0f4b1b258713158524c0cd9a1dc30f.tar.xz
vmchooser2-31777a980e0f4b1b258713158524c0cd9a1dc30f.zip
Use execv() to start selected session
Prevent vmchooser from lingering in the background, like a zombie, haunting you with invisible windows. Also seems to be notably faster when launching the openbox session.
Diffstat (limited to 'src/userconfig.cpp')
-rw-r--r--src/userconfig.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/userconfig.cpp b/src/userconfig.cpp
index 7bc83fe..31ab9e9 100644
--- a/src/userconfig.cpp
+++ b/src/userconfig.cpp
@@ -90,3 +90,10 @@ bool UserConfig::isNewsHelpOpen()
init();
return settings->value(KEY_NEWS_OPEN).toBool();
}
+
+void UserConfig::sync()
+{
+ if (settings != nullptr) {
+ settings->sync();
+ }
+}