From rnowotny@rotek.at Mon Jun 26 22:13:13 2017 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) Subject: Could not acquire name on session bus / Zesty / ubuntu-mate / x2go To: 1046@bugs.x2go.org References: <000001d2eea8$55268570$ff739050$@rotek.at> From: Robert Nowotny Message-ID: 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: 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 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
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--