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

Mike Gabriel mike.gabriel at das-netzwerkteam.de
Mon Sep 28 08:52:32 CEST 2015


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: mike.gabriel at das-netzwerkteam.de, http://das-netzwerkteam.de

freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: Digitale PGP-Signatur
URL: <http://lists.x2go.org/pipermail/x2go-dev/attachments/20150928/16299b8e/attachment.pgp>


More information about the x2go-dev mailing list