Subject: Re: [X2Go-Dev] Bug#949: Shell variable name conflict

From: Mike Gabriel <[email-masked]>
Date: Mon, 28 Sep 2015 06:52:32 +0000

Control: close -1
Control: tags -1 not-a-bug

Dear Michael,

On  Fr 25 Sep 2015 05:38:07 CEST, Michael wrote:

> Package: (Ubuntu server) x2goserver_4.0.1.19-0~1064~ubuntu14.04.1
> Version: 4.0.1.19-0~1064
>
> The name of shell variable ${STARTUP} defined by x2goserver is too common.
>> $ echo $STARTUP
>> /usr/bin/dbus-launch --exit-with-session /usr/bin/im-launch  
>> /usr/bin/env  
>> LD_LIBRARY_PATH=/usr/lib/nx/X11/Xinerama:/usr/lib/nx/X11  
>> xfce4-session
>
> It would easily cause conflicts with other things. (Took me a week  
> to debug :()
>
> Could you please consider changing it to some more specific name like
> "X2GO_STARTUP"?
>
> Thanks!

The $STARTUP env variable will be set for every Xsession based X11  
session on a Ubuntu or Debian (and alike).

Please do a grep on /etc/X11 and see its output (grep -r STARTUP /etc/X11).

In case you want to use $STARTUP in your own scripts, please know that  
it is not a good idea to use that var name on Debian nor Ubuntu systems.

Using X2GO_STARTUP or any other variable name will not work with  
existing scripts in /etc/X11/Xsessions.d. Thus, closing this issue and  
tagging as "not-a-bug".

Greets,
Mike

-- 

DAS-NETZWERKTEAM
mike gabriel, herweg 7, 24357 fleckeby
fon: +49 (1520) 1976 148

GnuPG Key ID 0x25771B31
mail: [email-masked], http://das-netzwerkteam.de

freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb