Playing with terminals I felt back in this issue.
The problem comes from the terminal
script that places a space between the geometry label and the geometry itself. This seems to be specific at Xterm. I gave a look at the help of others terminal (Terminology, vte-terminal, xfce4-terminal...), all of them need an "=
" sign.
Modifying the script as this
.../...
case $TERMINAL in
sakura)
(grep -q 'Unloading fbdev' /var/log/Xorg.0.log) || TERMINAL="sakura --sync"
OPT_TITLE='-t'; OPT_GEOM='--geometry'; OPT_HELP='-?'; OPT_HOLD='-h';;
xterm)
OPT_TITLE='-T'; OPT_GEOM='-geometry'; OPT_HELP='-help'; OPT_HOLD='-hold';;
*)
OPT_TITLE='-T'; OPT_GEOM='--geometry='; OPT_HELP='--help'; OPT_HOLD='--hold';;
esac
until [ $# -eq 0 ]; do
PARAM="$1"
case "$PARAM" in
-version|--version|-v) $TERMINAL -v; exit 0;;
-help|--help) help; exit 0;;
-h|-hold|--hold) shift; PARAMS="$PARAMS $OPT_HOLD";;
-geometry|--geometry|--geometry=) shift; GEOMETRY="$1"; shift;;
-t|-title|-T|--title) shift; TITLE="$1"; shift;;
-e|--xterm-execute) shift; COMMAND="-e $@"; break;;
*) shift; PARAMS="$PARAMS $PARAM";;
esac
done
case $TERMINAL in
xterm)
$TERMINAL $PARAMS $OPT_GEOM $GEOMETRY $OPT_TITLE "$TITLE" $COMMAND &
*)
$TERMINAL $PARAMS $OPT_GEOM$GEOMETRY $OPT_TITLE "$TITLE" $COMMAND &
exit 0
solved the problem.
But my knowledge of the shell is very poor... I think a dev will do much better.
Thanks.