From 66a19439090d7b0945253cb813f0195488e1d8ff Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Tue, 24 Apr 2012 01:10:53 -0500 Subject: Start minimal dcop system to support twin in tdm This speeds up tdm load as well as lessens problems with tmpfs space --- tdm/kfrontend/kgapp.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tdm/kfrontend/kgapp.cpp') diff --git a/tdm/kfrontend/kgapp.cpp b/tdm/kfrontend/kgapp.cpp index be61c2fd8..8fa0c18f5 100644 --- a/tdm/kfrontend/kgapp.cpp +++ b/tdm/kfrontend/kgapp.cpp @@ -192,6 +192,7 @@ kg_main( const char *argv0 ) KProcess *tsak = 0; KProcess *proc = 0; KProcess *comp = 0; + KProcess *dcop = 0; KProcess *twin = 0; trinity_desktop_lock_use_sak = _useSAK; @@ -317,6 +318,13 @@ kg_main( const char *argv0 ) } if (!_windowManager.isEmpty()) { + if (_windowManager == "twin") { + // Special case + // Start DCOP... + dcop = new KProcess; + *dcop << TQCString( argv0, strrchr( argv0, '/' ) - argv0 + 2 ) + "dcopserver" << TQCString("--suicide"); + dcop->start(); + } twin = new KProcess; *twin << TQCString( argv0, strrchr( argv0, '/' ) - argv0 + 2 ) + _windowManager.ascii(); twin->start(); @@ -462,11 +470,14 @@ kg_main( const char *argv0 ) if (login_session_wm.endsWith("/starttde") || (login_session_wm == "failsafe")) { twin->closeStdin(); twin->detach(); + dcop->detach(); } else { twin->kill(); + dcop->kill(); } delete twin; + delete dcop; } delete proc; UnsecureDisplay( dpy ); -- cgit v1.2.1