#784909 x11-common: /etc/X11/Xsession.d/20x11-common_process-args should not pass -geometry to x-terminal-emulator

#784909#5
Date:
2015-05-10 13:38:39 UTC
From:
To:
Dear Maintainer,

While debugging a recent upgrade to jessie, I tried logging in with
the failsafe option. This apparently just starts up a terminal
specifically the terminal currently set in `x-terminal-emulator`. In
my particular case, `x-terminal-emulator` was set to the terminator
program.

However, in this instance, this login attempt exited with an error,
namely:

    x-terminal-emulator: error: Additional unexpected arguments found: ['+1+1']

As Gilles on Unix & Linux Stack Exchange Chat (unix.stackexchange.com)
explained to me, the problem was that
/etc/X11/Xsession.d/20x11-common_process-args assumes that
x-terminal-emulator understands -geometry.

See the following extract from /etc/X11/Xsession.d/20x11-common_process-args:

    # Failsafe session was requested.
    if has_option allow-failsafe; then
      if [ -e /usr/bin/x-terminal-emulator ]; then
        if [ -x /usr/bin/x-terminal-emulator ]; then
          exec x-terminal-emulator -geometry +1+1

However, terminator doesn't understand this option.

    terminator -geometry +1+1
    Usage: terminator [options]

    terminator: error: Additional unexpected arguments found: ['+1+1']

Though it does understand

    terminator --geometry +1+1

However, Policy (11.8.3 Packages providing a terminal emulator) only
says

To be an x-terminal-emulator, a program must:

    Be able to emulate a DEC VT100 terminal, or a compatible terminal.

    Support the command-line option -e command, which creates a new
    terminal window[106] and runs the specified command, interpreting the
    entirety of the rest of the command line as a command to pass straight
    to exec, in the manner that xterm does.

    Support the command-line option -T title, which creates a new terminal
    window with the window title title.

So this looks like a bug.

                                            Regards, Faheem