Bug 235272 - ssh -X and remote start of KDE-applications fail due to d-bus problem
Summary: ssh -X and remote start of KDE-applications fail due to d-bus problem
Status: RESOLVED DUPLICATE of bug 245641
Alias: None
Product: kde
Classification: I don't know
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
: 281034 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-04-24 15:48 UTC by Ralph Moenchmeyer
Modified: 2012-01-02 03:05 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ralph Moenchmeyer 2010-04-24 15:48:10 UTC
Version:            (using KDE 4.4.2)
OS:                Linux
Installed from:    openSUSE RPMs

I run Opensuse 11.2 (x86_64) with KDE 4.4.2 with latest Updates from Suse's factory Repository. X11 and SSH packages are updated, too. 

Since one of my last KDE updates I can no longer start any KDE applications on a remote system which I access via ssh. At least not as a standard user. This is true for any KDE applications that need D-BUS. A command sequence like   

> ssh -X user@remote-machine
password:
> dolphin & 

fails with 

<unknown program name>(7021)/: KUniqueApplication: Cannot find the D-Bus session server:  "Failed to connect to socket /tmp/dbus-3XY1ugf0q0: Verbindungsaufbau abgelehnt" 

<unknown program name>(7018)/: KUniqueApplication: Pipe closed unexpectedly

However, when I type 

> dbus-launch dolphin & 

on the remote system everything works as expected. 

Also, no problem when "root" connects to the remote system via ssh and starts KDE applications. For root it works. So it may have to do with policy and rights and/or an auto-launch problem of d-bus. For standard X-applications as xterm there is no problem. 

D-Bus is running on my system and the remote system. In my ~-directory there is the needed file in ~/.dbus/session-dbus. 

I have a comparable Opensuse 11.2/KDE 4.4.2 installation on a laptop which I have updated at the end of Feb 2010. There everything works normally. Therefore, I am quite sure that the strange behaviour came with some of the latest KDE, X11 or SSH updates.
Comment 1 Tristan Miller 2011-07-31 10:57:29 UTC
I am experiencing this problem with openSUSE 11.3/KDE 4.7.0.  No KDE applications run over a remote ssh connection, even with X forwarding enabled.  (Other X applications run fine.)  As a workaround, the KDE applications can be launched as follows:

$ dbus-launch <command>
Comment 2 Tristan Miller 2011-08-01 06:56:24 UTC
A better workaround:

$ export $(dbus-launch)

After this all KDE applications can be run normally.
Comment 3 Tristan Miller 2011-08-11 16:03:13 UTC
This problem also prevents NX sessions from launching.
Comment 4 Christoph Feck 2011-08-30 23:00:11 UTC
*** Bug 281034 has been marked as a duplicate of this bug. ***
Comment 5 Jekyll Wu 2012-01-02 03:05:05 UTC

*** This bug has been marked as a duplicate of bug 245641 ***