X2Go Bug report logs - #1290
"Cannot open default display" error with .bashrc argument "setxkbmap de"

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

Reported by: Daniel Mann <daniel.mann@bph.rub.de>

Date: Wed, 25 Apr 2018 12:40:02 UTC

Severity: normal

Full log


Message #10 received at 1290@bugs.x2go.org (full text, mbox, reply):

Received: (at 1290) by bugs.x2go.org; 26 Apr 2018 11:27:16 +0000
From X2Go-ML-1@baur-itcs.de  Thu Apr 26 13:27:13 2018
X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on
	ymir.das-netzwerkteam.de
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00 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 BFD2E5DAEA
	for <1290@bugs.x2go.org>; Thu, 26 Apr 2018 13:27:12 +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 FiqO10PhTRSX for <1290@bugs.x2go.org>;
	Thu, 26 Apr 2018 13:27:03 +0200 (CEST)
X-Greylist: delayed 303 seconds by postgrey-1.35 at ymir.das-netzwerkteam.de; Thu, 26 Apr 2018 13:27:03 CEST
Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.13])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id 7B2E85DAC9
	for <1290@bugs.x2go.org>; Thu, 26 Apr 2018 13:27:03 +0200 (CEST)
Received: from [192.168.0.15] ([149.172.203.221]) by mrelayeu.kundenserver.de
 (mreue104 [212.227.15.145]) with ESMTPSA (Nemesis) id
 0LcxSS-1eTUXA29po-00iDcv; Thu, 26 Apr 2018 13:22:00 +0200
Subject: Re: [X2Go-Dev] Bug#1290: "Cannot open default display" error with
 .bashrc argument "setxkbmap de"
To: Daniel Mann <daniel.mann@bph.rub.de>, 1290@bugs.x2go.org
References: <0476757d-46cb-f067-c408-db1ef4afa443@bph.rub.de>
From: Stefan Baur <X2Go-ML-1@baur-itcs.de>
Message-ID: <9ecd0cbf-ed29-0ee3-e4b9-f707da8c3ea2@baur-itcs.de>
Date: Thu, 26 Apr 2018 13:21:55 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
 Thunderbird/52.7.0
MIME-Version: 1.0
In-Reply-To: <0476757d-46cb-f067-c408-db1ef4afa443@bph.rub.de>
Content-Type: multipart/signed; micalg=pgp-sha256;
 protocol="application/pgp-signature";
 boundary="tnRjZFVtyNomvJCt1nWEaJiYt48dFlq93"
X-Provags-ID: V03:K1:9DQeUkl6AXLgLIh9TFFmGHsG1BU8jrGHc/l3szoOx9QLbPEnNAT
 Hu94Rk97yJBy/Cl52LFUcFKD5GuWv3HzUXmaamPneFmx1yhwMHIcYVX/0Av0pf0M5MNcxmQ
 ipeKToV/bV16qTEkyLsqinwN1EO1ydj3RW0S3uSNvoZIk2J4kFp4sZeRBDpH09CtcwRYYO9
 McCkTTbVv/uFFbPlohDrg==
X-UI-Out-Filterresults: notjunk:1;V01:K0:aeQvshP60F0=:jV9i/lNMK7VUvuYAi6bAa2
 71lAPhJHoLCUumphR/YXPhc+m6jAbsoz1KFRDuFIa5lOfzPDAm/X1frVrJ3F7OZwrfofQJH3j
 ld5eHMbLXICZvtt8HH9e68eJ6HUg02r0vDANQ26YwjCMB8bzdWchUWRmy/+hAXEjUsU+wnpIC
 0cibkG2rOcACwnIP3/LxvpmtFxIMoWMaBlbbsjT0B/0KLhbuLPnaiqXFPT2gauGiqxMBlQ+Mf
 F/ERTcOALu4dPGmffvhI+zeEX9/MhOPTt81+LHMVD8OjiKbbtgDDANGmtiTN4ulGAYUfISeAW
 0bP+AeAgngpW3MlNqFIpGPr2lA/xjWevX91lgwgoLZyR/7xpwnF7uQ3zxVCJWt3QE8MJKY8MP
 D5bFbJl6+qTP07+ANHCikFNGUZenLRd9NT+rUwsQh0r1FTe4aBWrBrX8jXu+K5BdT62zBqPGZ
 eSLb+itEvMpuYEpKnvX2bnQ4WCzxoRWOGFFl1dMGLkWYZLl9LnEClo9+imr7IWe6gu8/QCl/q
 l6kodlwsgxP9HIyhe8SrSWpnrW17ydtrvJfnyuhHwFpHT0EsibGce52bYTmjx3JOMEcjN7Wg5
 SrDQJlVGUhEOZUIaxoSjMbVmk8SguIF9Tjl+F1dTq9bwRVjpyF9DkH1bIJfEMnExXtU3sAqaF
 6/51oQ8jMQ0WcIJauRSneAasAdC1qVZS/dHGSL90/xV8mBnbzHQyVWq5N7mvimIisZ1g=
[Message part 1 (text/plain, inline)]
Am 25.04.2018 um 14:27 schrieb Daniel Mann:

> When the argument "setxkbmap de" is present in the .bashrc, x2goclient
> states "Cannot open default display".
> 
> This issue is resolved when the argument is removed from the .bashrc file.

Sounds like you're calling setxkbmap when there's no display variable set.

Would you please try wrapping the setxkbmap call with
if [ -n "$DISPLAY" ]; then
	setxkbmap de
fi

Also, what you are doing sounds like a workaround for $SOMETHING.

Could it be that you are unaware of the option to enforce a keyboard
mapping using X2GoClient?
If you know of that option, but it doesn't work for you, we'd prefer
receiving a bug report for that, rather than for your intended
workaround that doesn't work. ;-)

Kind Regards,
Stefan Baur

-- 
BAUR-ITCS UG (haftungsbeschränkt)
Geschäftsführer: Stefan Baur
Eichenäckerweg 10, 89081 Ulm | Registergericht Ulm, HRB 724364
Fon/Fax 0731 40 34 66-36/-35 | USt-IdNr.: DE268653243

[signature.asc (application/pgp-signature, attachment)]

Send a report that this bug log contains spam.


X2Go Developers <owner@bugs.x2go.org>. Last modified: Thu Nov 21 16:01: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.