X2Go Bug report logs - #1046
x2go session causes dbus conflicts with logged in desktop on Fedora 24

version graph

Package: x2goserver; Maintainer for x2goserver is X2Go Developers <x2go-dev@lists.x2go.org>; Source for x2goserver is src:x2goserver.

Reported by: Andy Wang <dopey@moonteeth.com>

Date: Sat, 25 Jun 2016 03:35:01 UTC

Severity: normal

Merged with 1083

Found in version

Full log

🔗 View this message in rfc822 format

X-Loop: owner@bugs.x2go.org
Subject: Bug#1046: x2go session causes dbus conflicts with logged in desktop on Fedora 24
Reply-To: Andy Wang <dopey@moonteeth.com>, 1046@bugs.x2go.org
Resent-From: Andy Wang <dopey@moonteeth.com>
Resent-To: x2go-dev@lists.x2go.org
Resent-CC: X2Go Developers <x2go-dev@lists.x2go.org>
X-Loop: owner@bugs.x2go.org
Resent-Date: Sat, 25 Jun 2016 03:35:01 +0000
Resent-Message-ID: <handler.1046.B.146682545224984@bugs.x2go.org>
Resent-Sender: owner@bugs.x2go.org
X-X2Go-PR-Message: report 1046
X-X2Go-PR-Package: x2goserver
Received: via spool by submit@bugs.x2go.org id=B.146682545224984
          (code B); Sat, 25 Jun 2016 03:35:01 +0000
Received: (at submit) by bugs.x2go.org; 25 Jun 2016 03:30:52 +0000
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on
X-Spam-Status: No, score=0.8 required=3.0 tests=BAYES_50,DKIM_SIGNED,
	DKIM_VALID,HTML_MESSAGE,URIBL_BLOCKED autolearn=ham version=3.3.2
Received: from localhost (localhost [])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTP id 28EEE5DDD4
	for <submit@bugs.x2go.org>; Sat, 25 Jun 2016 05:30:51 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at ymir.das-netzwerkteam.de
Received: from ymir.das-netzwerkteam.de ([])
	by localhost (ymir.das-netzwerkteam.de []) (amavisd-new, port 10024)
	with ESMTP id h94UN6BhUamP for <submit@bugs.x2go.org>;
	Sat, 25 Jun 2016 05:30:44 +0200 (CEST)
Received: from mail-io0-f179.google.com (mail-io0-f179.google.com [])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id 636515DA97
	for <submit@bugs.x2go.org>; Sat, 25 Jun 2016 05:30:44 +0200 (CEST)
Received: by mail-io0-f179.google.com with SMTP id t74so114361730ioi.0
        for <submit@bugs.x2go.org>; Fri, 24 Jun 2016 20:30:44 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=moonteeth-com.20150623.gappssmtp.com; s=20150623;
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
X-Gm-Message-State: ALyK8tKDUbWzLHx+qrJRLz4fvt6FIUip7ElFPeZgDc0Q+z81LG//QDOYnHkINnwh4BZKYfoxucDowppYjtPReQ==
X-Received: by with SMTP id k189mr8505270iok.176.1466825443107;
 Fri, 24 Jun 2016 20:30:43 -0700 (PDT)
MIME-Version: 1.0
Received: by with HTTP; Fri, 24 Jun 2016 20:30:42 -0700 (PDT)
X-Originating-IP: [2602:43:4d0:9100:915c:b456:b330:7792]
From: Andy Wang <dopey@moonteeth.com>
Date: Fri, 24 Jun 2016 22:30:42 -0500
Message-ID: <CAGjaHhvetz3KfxWj+_96UFYZZEHU1XFgAuyX=tOYTXP=BvEVQg@mail.gmail.com>
To: submit@bugs.x2go.org
Content-Type: multipart/alternative; boundary=001a1140ebaa7c17b1053611e984
[Message part 1 (text/plain, inline)]
Package: x2goserver

When attempting to login with a client desktop session that uses dbus while
logged in as the same user on the console causes an error to appear in a
pop up window:
Could not acquire name on session bus

You can dismiss the error but the desktop never full starts and attempts to
logout triggers the logout on the console session.

From the error, I this appears to be resolved by using a custom session
script in x2go and making sure to call: unset DBUS_SESSION_BUS_ADDRESS

For example:
# redirect to /dev/null due to x2go bug 914
/usr/bin/mate-session > /dev/null

Doing some digging, it looks like the dbus socket
(/usr/lib/systemd/user/dbus.socket) on fedora 24
(dbus-1.11.2-1.fc24.x86_64) does this:
ExecStartPost=-/usr/bin/systemctl --user set-environment

And sets the DBUS_SESSION_BUS_ADDRESS for all logins for your user.

This same workaround appears to be what tigervnc used as their permanent

So I think this is the proper solution.

FYI, a bug was filed against Fedora as well:
[Message part 2 (text/html, inline)]

Send a report that this bug log contains spam.

X2Go Developers <owner@bugs.x2go.org>. Last modified: Thu Jun 20 22:06:29 2024; Machine Name: ymir.das-netzwerkteam.de

X2Go Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.