That patch is wrong; generally the [0] argument can also be --; one has
to patch the code inserting the gnome-terminal.real to read:

        if not self.args or self.args[0] == "--":
            self.args.insert(0, "/usr/bin/gnome-terminal.real")

That being said, --app-id and --class still do not work; all windows get
grouped under Terminal instead of my custom weechat desktop file (I also
patched out the prefix such that it actually uses org.weechat.weechat
instead of com.canonical.Terminal.org.weechat.weechat.

-- 
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