From unknown Tue May 19 05:32:27 2026
X-Loop: owner@bugs.x2go.org
Subject: Bug#1046: Could not acquire name on session bus / Zesty / ubuntu-mate / x2go
Reply-To: Robert Nowotny <rnowotny@rotek.at>, 1046@bugs.x2go.org
Resent-From: Robert Nowotny <rnowotny@rotek.at>
Resent-To: x2go-dev@lists.x2go.org
Resent-CC: X2Go Developers <x2go-dev@lists.x2go.org>
X-Loop: owner@bugs.x2go.org
Resent-Date: Mon, 26 Jun 2017 20:15:05 +0000
Resent-Message-ID: <handler.1046.B1046.14985080073978@bugs.x2go.org>
Resent-Sender: owner@bugs.x2go.org
X-X2Go-PR-Message: followup 1046
X-X2Go-PR-Package: x2goserver
X-X2Go-PR-Keywords: 
Received: via spool by 1046-submit@bugs.x2go.org id=B1046.14985080073978
          (code B ref 1046); Mon, 26 Jun 2017 20:15:05 +0000
Received: (at 1046) by bugs.x2go.org; 26 Jun 2017 20:13:27 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on
	ymir.das-netzwerkteam.de
X-Spam-Level: 
X-Spam-Status: No, score=-0.0 required=3.0 tests=BAYES_20,HTML_MESSAGE,
	SPF_HELO_PASS autolearn=ham autolearn_force=no version=3.4.1
Received: from localhost (localhost [127.0.0.1])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTP id 903865DAD1
	for <1046@bugs.x2go.org>; Mon, 26 Jun 2017 22:13:09 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at ymir.das-netzwerkteam.de
Received: from ymir.das-netzwerkteam.de ([127.0.0.1])
	by localhost (ymir.das-netzwerkteam.de [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id r9WQJL0SaucN for <1046@bugs.x2go.org>;
	Mon, 26 Jun 2017 22:12:28 +0200 (CEST)
Received: from mail.rotek.at (mail.rotek.at [88.116.105.147])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTP id 0C5E95DACD
	for <1046@bugs.x2go.org>; Mon, 26 Jun 2017 22:12:23 +0200 (CEST)
Received: from vm-imap.rotek.at (vm-imap.local.rotek.at [192.168.168.15])
	by mail.rotek.at (Postfix) with ESMTP id 0C2BFC404B9
	for <1046@bugs.x2go.org>; Mon, 26 Jun 2017 22:12:23 +0200 (CEST)
Received: from [192.168.168.104] (vk-rnowotny.local.rotek.at [192.168.168.104])
	by vm-imap.rotek.at (Postfix) with ESMTP id 0A80E2B001FC
	for <1046@bugs.x2go.org>; Mon, 26 Jun 2017 22:12:24 +0200 (CEST)
To: 1046@bugs.x2go.org
References: <000001d2eea8$55268570$ff739050$@rotek.at>
 <handler.1046.B1046.149850135211865.ackinfo@bugs.x2go.org>
From: Robert Nowotny <rnowotny@rotek.at>
Message-ID: <ef1414c5-f7ce-3cd7-40f3-1febffa6c71c@rotek.at>
Date: Mon, 26 Jun 2017 22:12:22 +0200
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101
 Thunderbird/52.2.1
MIME-Version: 1.0
In-Reply-To: <handler.1046.B1046.149850135211865.ackinfo@bugs.x2go.org>
Content-Type: multipart/alternative;
 boundary="------------523CADA5BBE88B781D6C0593"

This is a multi-part message in MIME format.
--------------523CADA5BBE88B781D6C0593
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit

Package:X2Go Server
Version : 4.0.1.20
System : Ubuntu 17.04 Zesty Zapatus, Kernel 4.4.0-81-generic
Desktop: MATE 1.18.0

After Launching the Client, it shows a black Window, showing "Could not acquire name on session bus"

First I suggested to edit the file/etc/systemd/system/display-manager.service - but that is wrong, then 
the desktop on the machine will note come up : ***** WRONG : 
/etc/systemd/system/display-manager.service

[Service]
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
.....

***** /WRONG - Desktop Session will not boot this way (remote desktop is 
working) ***** /etc/x2go/Xsession.d/75dbus_dbus-launch # $Id:$ # In 
order to activate the session bus at X session launch # simply place 
use-session-dbus into your /etc/X11/Xsession.options file # STARTDBUS= 
DBUSLAUNCH=/usr/bin/dbus-launch if has_option use-session-dbus; then # 
changed rn am 26.06.2017 - $DBUS_SESSION_BUS_ADDRESS is not zero length, 
but : "unix:path=/run/user/1000/bus" # if [ -z 
"$DBUS_SESSION_BUS_ADDRESS" ] && [ -x "$DBUSLAUNCH" ]; then # old code - 
STARTDBUS will ne not set if [ -x "$DBUSLAUNCH" ]; then # new code - 
STARTDBUS will be set to yes STARTDBUS=yes fi fi if [ -n "$STARTDBUS" ]; 
then # Note that anything that is D-Bus-activated between here and # 
95dbus_update-activation-env will not have the complete environment # 
set up by Xsession.d, unless the Xsession.d snippet that sets the # 
environment variable also calls dbus-update-activation-environment. # 
See <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=815503> eval 
$($DBUSLAUNCH --exit-with-session --sh-syntax) fi


***** /etc/x2go/Xsession.d/75dbus_dbus-launch - now its working as 
expected on my machine ... yours sincerely Ing. Robert Nowotny Rotek GmbH


--------------523CADA5BBE88B781D6C0593
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <pre style="color: rgb(0, 0, 0); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;">Package:X2Go Server
Version : 4.0.1.20
System : Ubuntu 17.04 Zesty Zapatus, Kernel 4.4.0-81-generic
Desktop: MATE 1.18.0

After Launching the Client, it shows a black Window, showing "Could not acquire name on session bus"

First I suggested to edit the file <span style="font-size:10.0pt;font-family:&quot;Liberation Mono&quot;">/etc/systemd/system/display-manager.service - but  that is wrong, 
then the desktop on the machine will note come up : 

***** WRONG : </span><span style="font-size:10.0pt;font-family:&quot;Liberation Mono&quot;">/etc/systemd/system/display-manager.service</span></pre>
    <p class="MsoNormal"><span
        style="font-size:10.0pt;font-family:&quot;Liberation Mono&quot;">[Service]<br>
        unset SESSION_MANAGER<br>
        unset DBUS_SESSION_BUS_ADDRESS<br>
        .....<br>
      </span></p>
    <pre style="color: rgb(0, 0, 0); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"><span style="font-size:10.0pt;font-family:&quot;Liberation Mono&quot;">***** /WRONG - Desktop Session will not boot this way (remote desktop is working)

***** /etc/x2go/Xsession.d/75dbus_dbus-launch

# $Id:$
# In order to activate the session bus at X session launch
# simply place use-session-dbus into your /etc/X11/Xsession.options file
#

STARTDBUS=
DBUSLAUNCH=/usr/bin/dbus-launch
if has_option use-session-dbus; then
</span><span style="font-size:10.0pt;font-family:&quot;Liberation Mono&quot;"><span style="font-size:10.0pt;font-family:&quot;Liberation Mono&quot;">  # changed rn am 26.06.2017 - $DBUS_SESSION_BUS_ADDRESS is not zero length, but : "unix:path=/run/user/1000/bus"</span>
  # if [ -z "$DBUS_SESSION_BUS_ADDRESS" ] &amp;&amp; [ -x "$DBUSLAUNCH" ]; then  # old code - STARTDBUS will ne not set
  if [ -x "$DBUSLAUNCH" ]; then						 # new code - STARTDBUS will be set to yes
    STARTDBUS=yes
  fi
fi

if [ -n "$STARTDBUS" ]; then
  # Note that anything that is D-Bus-activated between here and
  # 95dbus_update-activation-env will not have the complete environment
  # set up by Xsession.d, unless the Xsession.d snippet that sets the
  # environment variable also calls dbus-update-activation-environment.
  # See <a class="moz-txt-link-rfc2396E" href="https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=815503">&lt;https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=815503&gt;</a>
  eval $($DBUSLAUNCH --exit-with-session --sh-syntax)
fi
</span></pre>
    <br>
    <pre style="color: rgb(0, 0, 0); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"><span style="font-size:10.0pt;font-family:&quot;Liberation Mono&quot;">***** /etc/x2go/Xsession.d/75dbus_dbus-launch - now its working as expected on my machine ... 

yours sincerely

Ing. Robert Nowotny
Rotek GmbH

</span></pre>
    <span style="font-size:10.0pt;font-family:&quot;Liberation
      Mono&quot;"></span>
  </body>
</html>

--------------523CADA5BBE88B781D6C0593--
