summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarrell Anderson <[email protected]>2012-03-28 01:47:31 -0500
committerDarrell Anderson <[email protected]>2012-03-28 01:47:31 -0500
commit1c479363908f1967347f51ba8f4044bdb321d31c (patch)
tree18ccdec97038bc5a36c764aa9803fe25886e3b80
parentd62a231f553154f4048f958b3376c66148113a20 (diff)
downloadtdebase-1c479363908f1967347f51ba8f4044bdb321d31c.tar.gz
tdebase-1c479363908f1967347f51ba8f4044bdb321d31c.zip
Fix failure to start TDE session when twinrc wmArguments is empty.
-rw-r--r--tdeinit/phase1.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tdeinit/phase1.cpp b/tdeinit/phase1.cpp
index 6867ad21f..f4317e554 100644
--- a/tdeinit/phase1.cpp
+++ b/tdeinit/phase1.cpp
@@ -74,6 +74,9 @@ int main(int argc, char **argv)
if (wmToLaunch == "") {
return_code = system("kwrapper ksmserver");
}
+ else if (wmArguments == "") {
+ return_code = system((TQString("kwrapper ksmserver --windowmanager %1").arg(wmToLaunch)).ascii());
+ }
else {
return_code = system((TQString("kwrapper ksmserver --windowmanager %1 --windowmanageraddargs %2").arg(wmToLaunch).arg(wmArguments)).ascii());
}