[Bug 245641] New: "Session bus not found" when starting a KApplication via ssh

tstaerk dev at staerk.de
Sat Jul 24 13:56:24 BST 2010


https://bugs.kde.org/show_bug.cgi?id=245641

           Summary: "Session bus not found" when starting a KApplication
                    via ssh
           Product: kde
           Version: CVS
          Platform: Compiled Sources
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: unassigned-bugs at kde.org
        ReportedBy: dev at staerk.de


Version:           CVS (using Devel) 
OS:                Linux

Whenever I try to start a KApplication via ssh on another computer, I get
"Session bus not found". I could circumvent this problem with a command 
 export $(dbus-launch)
but I think this should work by default.

So this is a request to put the following patch into kdelibs:
itchy:~/kdelibs/kdeui/kernel # svn diff
Index: kapplication.cpp
===================================================================
--- kapplication.cpp    (revision 1152998)
+++ kapplication.cpp    (working copy)
@@ -508,10 +508,10 @@
   extern void qDBusBindToApplication();
   qDBusBindToApplication();
   QDBusConnectionInterface *bus = 0;
-  if (!QDBusConnection::sessionBus().isConnected() || !(bus =
QDBusConnection::sessionBus().interface())) {
-      kFatal(101) << "Session bus not found" << endl;
-      ::exit(125);
-  }
+  //if (!QDBusConnection::sessionBus().isConnected() || !(bus =
QDBusConnection::sessionBus().interface())) {
+  //    kFatal(101) << "Session bus not found" << endl;
+  //    ::exit(125);
+  //}

   extern bool s_kuniqueapplication_startCalled;
   if ( bus && !s_kuniqueapplication_startCalled ) // don't register again if
KUniqueApplication did so already



Reproducible: Always

Steps to Reproduce:
1. ssh -X somecomputer
2. ktimetracker

Actual Results:  
itchy:~/kdelibs/kdeui/kernel # ktimetracker
ktimetracker(11834): Session bus not found

KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = ktimetracker path = /usr/local/bin pid = 11834
KCrash: Attempting to start /usr/local/lib/kde4/libexec/drkonqi from kdeinit
sock_file=/root/.kde/socket-itchy/kdeinit4_localhost_10

[1]+  Stopped                 ktimetracker


Expected Results:  
ktimetracker starts

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Unassigned-bugs mailing list