> generally the [0] argument can also be --

How? Can you please give an example?

The upstream GNOME Terminal change that we're affected by is
https://gitlab.gnome.org/GNOME/gnome-terminal/-/issues/8074. GNOME
Terminal used to silently ignore non-option parameters (before the "--"
if such a parameter was present), now rejects them as error.

The wrapper script erroneously passes such an extra argument which now
causes the problem.

It's unclear to me: How would the fix involve possibly _adding_ yet
another parameter, rather than _removing_ the superfluous one?

I have to admit that I don't necessarily understand _all_ possible code
paths in that script, nor do I understand what the script really wants
to do, but I aimed to change it in a no-op way, i.e. its behavior should
be identical to what it used to do with older GNOME Terminal versions;
also I tested it with a simple `gnome-terminal --class foo` or similar
command and it worked as expected. But again, I might have missed
something, might mishandle a more complex command line. But I can't see
how _inserting_ yet another parameter could be a fix, adapting to newer
GNOME Terminal, yet maintaining the previous behavior of the wrapper
script.

We'd really need the author of that wrapper script to take a look. (I
don't know who that person is.)

** Bug watch added: gitlab.gnome.org/GNOME/gnome-terminal/-/issues #8074
   https://gitlab.gnome.org/GNOME/gnome-terminal/-/issues/8074

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-terminal in Ubuntu.
https://bugs.launchpad.net/bugs/2073881

Title:
  gnome-terminal stopped accepting arguments: # Failed to parse
  arguments: Too many arguments

Status in gnome-terminal package in Ubuntu:
  Confirmed

Bug description:
  I have created a simple org.weechat.weechat-ssh.desktop to launch
  gnome-terminal with an app-id, window title, etc using

  gnome-terminal --window --disable-factory --class weechat-ssh --name
  weechat-ssh --app-id org.weechat.weechat-ssh --title WeeChat -- ssh
  -oControlMaster=no -i /home/jak/.ssh/weechat_ssh_id_rsa -o
  IdentitiesOnly=yes -t [email protected] -- tmux attach -dt irc

  
  This stopped working with the (AFAICT) gnome-terminal:amd64 (3.52.0-1ubuntu2 
-> 3.52.2-1ubuntu1) update.

  Even reducing the argument list further breaks:

  jak@jak-t14-g3:~/.local/share/applications$ $ gnome-terminal --window --class 
weechat-ssh 
  # Failed to parse arguments: Too many arguments
  jak@jak-t14-g3:~/.local/share/applications$ gnome-terminal  --class 
weechat-ssh 
  # Failed to parse arguments: Too many arguments

  ProblemType: Bug
  DistroRelease: Ubuntu 24.10
  Package: gnome-terminal 3.52.2-1ubuntu1
  ProcVersionSignature: Ubuntu 6.8.0-31.31-generic 6.8.1
  Uname: Linux 6.8.0-31-generic x86_64
  NonfreeKernelModules: zfs
  ApportVersion: 2.28.1-0ubuntu4
  Architecture: amd64
  CasperMD5CheckResult: pass
  CurrentDesktop: GNOME
  Date: Tue Jul 23 22:06:54 2024
  InstallationDate: Installed on 2022-11-26 (605 days ago)
  InstallationMedia: Ubuntu 23.04 "Lunar Lobster" - Alpha amd64 (20221126)
  SourcePackage: gnome-terminal
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-terminal/+bug/2073881/+subscriptions


-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to