Subject: Bug#79: x2goruncommand is not "user friendly"

From: Mike Gabriel <[email-masked]>
Date: Thu, 06 Dec 2012 15:17:22 +0100

severity #79 wishlist
thanks

Hi Reinhard,

On Do 06 Dez 2012 14:44:03 CET Reinhard Tartler wrote:

> Package: x2goserver
>
> It seems that x2goruncommand is not supposed to be called directly by
> the user. Calling it without parameters yields to:
>
>>> x2goruncommand
> /usr/bin/x2goruncommand: Zeile 46:
> /home/inf4/tartler/.x2go/C-/cmdoutput: Datei oder Verzeichnis nicht
> gefunden
> /usr/bin/x2goruncommand: Zeile 262:
> /home/inf4/tartler/.x2go/C-/cmdoutput: Datei oder Verzeichnis nicht
> gefunden
> kill: Gebrauch: kill [-s Signalname | -n Signalnummer | -Signalname]
> [pid | job] ... oder kill -l [Signalname]
> Died at /usr/lib/x2go/x2gochangestatus line 35.
> argument "session_id" missed at /usr/lib/x2go/x2godbwrapper.pm line 575.
>
>
> The fact that it is installed by default into /usr/bin makes it appear
> in the tab-completion of modern shells such as bash and implies that
> users are supposed to call it directly.

Agreed! So with many other X2Go commands in /usr/bin. The reason is  
that the client implementations currently expect to find the x2go*  
commands in $PATH.

> I would suggest to either: a) make it robust against wrong calling
> usage, b) place it in /usr/lib/x2go/x2goruncommand instead, or c)
> both.

a) is the way to go...

Mike

-- 

DAS-NETZWERKTEAM
mike gabriel, rothenstein 5, 24214 neudorf-bornstein
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