[X2Go-User] Q: regarding calling script or binary on login

Tim Kruse tim.kruse at kikxxl.de
Mon Oct 14 15:27:33 CEST 2013


Am 02.10.2013 02:44, schrieb Ted Barnes:> Hi All:
 >
 > Am trying to launch a script at login to mount an encrypted partition.
 > I've been trying the option to place a script and/or commands in
 > /usr/lib/x2go/extensions/post-start.d/scriptname.sh.  I can get this to
 > work, but want to figure out a way to keep the password for the mount
 > hidden.
 > [...]

Besides Mike's posts ...

We ran in similar issues, as we wanted to execute a pre-start script, so 
I digged into /usr/bin/x2goserver-run-extensions and found:

------<SNIP>------
find "$X2GO_LIB_PATH/extensions/$X2GO_MODALITY.d/" -maxdepth 1 -mindepth 
1 | egrep "/[0-9]{3}_[[:alnum:]]+" | sort | while read x2go_extension; do
------<SNAP>------

So you have to give your scripts/binarys such names. In your example:

/usr/lib/x2go/extensions/post-start.d/001_sriptname.sh or something like 
that.

Greetz, Tim





More information about the x2go-user mailing list