Subject: Bug#1116: [X2Go-Dev] Bug 1116 solved

From: Mihai Moldovan <[email-masked]>
Date: Tue, 29 Nov 2016 18:39:45 +0100

Control: tag -1 not-a-bug
Control: severity -1 normal
Control: close -1

On 29.11.2016 04:21 PM, Stefan Baur wrote:
> Am 29.11.2016 um 15:41 schrieb [email-masked]:
>> Package: x2goserver
>> Version: 4.0.5.1
>> Severity: grave
>>
>> The problem was similar to bug 1091
>> I solved it by removing the command setxkbmap from my .profile
> 
> Note that you don't have to remove it completely; wrapping it in a check
> like
> 
> if test -t 0; then
> 	your-command-here
> fi
> 
> should do. This test will only return true if you're runniny a TTY
> session, which X2Go does not.

For commands expecting a TTY (e.g. "mesg"), yes. setxkbmap should not be wrapped
into this, but rather $DISPLAY checked for existence *and* its stderr messages
redirected either to a file or to /dev/null. In reality, this call doesn't
belong in ~/.profile at all, but I'll leave that to the user to sort it out...

Closing up.

Mihai