• Bug#1103347: Does not accept -name command line option

    From martin f krafft@21:1/5 to All on Wed Apr 16 17:30:01 2025
    Package: alacritty
    Version: 0.15.1-2
    Severity: normal

    Unfortunately, Alacritty does not accept the `-name` command-line
    option, and instead spews and error message. This is a problem when
    it is used as a drop-in to `x-terminal-emulator`, which sometimes
    gets passed the `-name` option (supported by every other terminal
    emulator that I know).

    ```
    albatross:~% x-terminal-emulator -name foo #(pts/33) 16 17:06:53.105
    error: unexpected argument '-n' found

    Usage: x-terminal-emulator [OPTIONS] [COMMAND]

    For more information, try '--help'.
    ```

    It would be good enough IMHO to accept and ignore it. Unfortunately,
    upstream simply closed the issue wontfix without an explanation: https://github.com/alacritty/alacritty/issues/8548

    -- System Information:
    Debian Release: trixie/sid
    APT prefers unstable
    APT policy: (500, 'unstable'), (1, 'experimental')
    Architecture: amd64 (x86_64)

    Kernel: Linux 6.12.11-amd64 (SMP w/32 CPU threads; PREEMPT)
    Locale: LANG=en_NZ, LC_CTYPE=en_NZ.UTF-8 (charmap=UTF-8), LANGUAGE=en_NZ:en Shell: /bin/sh linked to /usr/bin/dash
    Init: systemd (via /run/systemd/system)
    LSM: AppArmor: enabled

    Versions of packages alacritty depends on:
    ii libc6 2.41-7
    ii libfontconfig1 2.15.0-2.3
    ii libfreetype6 2.13.3+dfsg-1
    ii libgcc-s1 14.2.0-19
    ii libwayland-client0 1.23.1-3
    ii libwayland-egl1 1.23.1-3
    ii libxkbcommon-x11-0 1.7.0-2

    alacritty recommends no packages.

    alacritty suggests no packages.

    -- no debconf information


    --
    .''`. martin f. krafft <madduck@d.o>
    : :' : proud Debian developer
    `. `'` http://people.debian.org/~madduck
    `- Debian - when you have better things to do than fixing systems

    <!DOCTYPE html>

    <html>
    <head>
    <meta content="text/html; charset=utf-8" http-equiv="content-type"/>
    <meta content="width=device-width, initial-scale=1.0" name="viewport"/>
    </head>
    <body style="font-family: Lato, Calibri, Tahoma, sans-serif; max-width: 32em"> <p style="text-align: justify; text-justify: auto">Package: alacritty<br/> Version: 0.15.1-2<br/>
    Severity: normal</p>
    <p style="text-align: justify; text-justify: auto">Unfortunately, Alacritty does not accept the <code>-name</code> command-line option, and instead spews and error message. This is a problem when it is used as a drop-in to <code>x-terminal-emulator</code>
    , which sometimes gets passed the <code>-name</code> option (supported by every other terminal emulator that I know).</p>
    <div class="codehilite" style="background: #f8f8f8"><pre style="line-height: 125%"><span></span><code>albatross:~% x-terminal-emulator -name foo #(pts/33) 16 17:06:53.105
    error: unexpected argument &#39;-n&#39; found

    Usage: x-terminal-emulator [OPTIONS] [COMMAND]

    For more information, try &#39;--help&#39;.
    </code></pre></div>
    <p style="text-align: justify; text-justify: auto">It would be good enough IMHO to accept and ignore it. Unfortunately, upstream simply closed the issue wontfix without an explanation: <a href="https://github.com/alacritty/alacritty/issues/8548">https://
    github.com/alacritty/alacritty/issues/8548</a></p>
    <p style="text-align: justify; text-justify: auto">&ndash; System Information:<br/>
    Debian Release: trixie/sid<br/>
    APT prefers unstable<br/>
    APT policy: (500, &lsquo;unstable&rsquo;), (1, &lsquo;experimental&rsquo;)<br/>
    Architecture: amd64 (x86_64)</p>
    <p style="text-align: justify; text-justify: auto">Kernel: Linux 6.12.11-amd64 (SMP w/32 CPU threads; PREEMPT)<br/>
    Locale: LANG=en_NZ, LC_CTYPE=en_NZ.UTF-8 (charmap=UTF-8), LANGUAGE=en_NZ:en<br/>
    Shell: /bin/sh linked to /usr/bin/dash<br/>
    Init: systemd (via /run/systemd/system)<br/>
    LSM: AppArmor: enabled</p>
    <p style="text-align: justify; text-justify: auto">Versions of packages alacritty depends on:<br/>
    ii libc6 2.41-7<br/>
    ii libfontconfig1 2.15.0-2.3<br/>
    ii libfreetype6 2.13.3+dfsg-1<br/>
    ii libgcc-s1 14.2.0-19<br/>
    ii libwayland-client0 1.23.1-3<br/>
    ii libwayland-egl1 1.23.1-3<br/>
    ii libxkbcommon-x11-0 1.7.0-2</p>
    <p style="text-align: justify; text-justify: auto">alacritty recommends no packages.</p>
    <p style="text-align: justify; text-justify: auto">alacritty suggests no packages.</p>
    <p style="text-align: justify; text-justify: auto">&ndash; no debconf information</p>
    <div id="signature" style="font-family: Lato, Calibri, Tahoma, sans-serif; max-width: 32em"><span class="sig_separator" style="display: none">-- </span>

    <dt>.&rsquo;&lsquo;`. martin f. krafft <a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#109;&#97;&#100;&#100;&#117;&#99;&#107;&#64;&#100;&#46;&#111;">&#109;&#97;&#100;&#100;&#117;&#99;&#107;&#64;&#100;&#46;&#111;</a></dt>
    <dd>:&rsquo; : proud Debian developer<br/> <code>.</code>&lsquo;<code>http://people.debian.org/~madduck</code>- Debian - when you have better things to do than fixing systems</dd>
    </dl>
    </div>
    </body>
    </html>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From James McCoy@21:1/5 to martin f krafft on Wed Apr 16 21:10:01 2025
    Control: severity -1 wishlist

    On Wed, Apr 16, 2025 at 05:09:02PM +0200, martin f krafft wrote: >Unfortunately, Alacritty does not accept the -name command-line option, and >instead spews and error message. This is a problem when it is used as a drop-in
    to x-terminal-emulator, which sometimes gets passed the -name option (supported
    by every other terminal emulator that I know).

    Just checking the other terminals I have installed, kitty and
    gnome-terminal also do not support this option. Although gnome-terminal
    added a wrapper to align with x-terminal-emulator's requirements and
    included support for a few "non-standard options", "-name" being one of
    them.

    albatross:~% x-terminal-emulator -name foo #(pts/33) 16 17:06:53.105
    error: unexpected argument '-n' found

    Usage: x-terminal-emulator [OPTIONS] [COMMAND]

    For more information, try '--help'.

    For what it's worth, there's no expectation that x-terminal-emulator
    supports this option. The only requirements are documented in Policy
    11.8.3:

    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 [6] and runs the specified command. <command> may
    be multiple arguments, which form the argument list to the executed
    program. In other words, the behavior is as though the arguments
    were passed directly to "execvp", bypassing the shell. ("xterm"’s
    behavior of falling back on using the shell if "-e" had a single
    argument and exec failed is permissible but not required.)

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

    I did work with upstream to get -T supported before having it provide
    the x-terminal-emulator alternative, but they already had support for
    --title so it was just aliasing the existing option.

    Anything passing "-name" to x-terminal-emulator is expecting more than
    the abstraction guarantees. I'm not sure that's something that's worth supporting.

    Cheers,
    --
    James
    GPG Key: 4096R/91BF BF4D 6956 BD5D F7B7 2D23 DFE6 91AE 331B A3DB

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)