# HG changeset patch # User Christophe Lincoln # Date 1254425068 -7200 # Node ID 8ec105954ae9b58990cf808abdb643dc8160427e # Parent fad3262d280d953a5756fa087f8437fe5ab00664 subox fix execution (use variable rather than tmp file) diff -r fad3262d280d -r 8ec105954ae9 tinyutils/subox --- a/tinyutils/subox Fri Sep 18 13:09:01 2009 +0200 +++ b/tinyutils/subox Thu Oct 01 21:24:28 2009 +0200 @@ -15,30 +15,28 @@ # Nothing to do if we are root test $(id -u) = 0 && exec $1 -# Keep binary name in a tmp file to be used by SU_DIALOG. -echo "$1" > /tmp/subox-exec +# Keep command in an exported variable to be used by SU_DIALOG. +export SU_CMD=$@ # Main window and root password default entry set to 'root'. export SU_DIALOG=' - + - - - ' gtkdialog --center --program=SU_DIALOG - -# Let other user lauch subox. -rm /tmp/subox-exec +exit 0