From 1c479363908f1967347f51ba8f4044bdb321d31c Mon Sep 17 00:00:00 2001 From: Darrell Anderson Date: Wed, 28 Mar 2012 01:47:31 -0500 Subject: Fix failure to start TDE session when twinrc wmArguments is empty. --- tdeinit/phase1.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tdeinit') 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()); } -- cgit v1.2.1