Hi Nuno,

Thank you for the link.

Yes — this seems to match my issue almost exactly:

https://gitlab.gnome.org/chergert/ptyxis/-/issues/256

I am on Debian Testing, and the behavior I’m seeing is consistent with what
is described there:

using -x opens two Ptyxis windows, even when called from another terminal;

sometimes even more than two when launched from a .desktop entry;

the extra window often runs my login shell instead of the command requested;

the window that runs the command is missing tab controls (as mentioned in
the issue).


In my case, this started only after switching the default terminal to
Ptyxis.
The default Debian mutt.desktop looks like this:

[Desktop Entry]
Categories=Office;Network;Email;
Comment=Simple text-based Mail User Agent
Exec=mutt %u
Icon=mutt
Name=mutt
MimeType=x-scheme-handler/mailto;
Terminal=true
Type=Application

This works correctly with other terminal emulators.
With Ptyxis, however, it consistently creates an extra terminal window.

I’ve tried several combinations in the .desktop file:

Exec=ptyxis -x "mutt %u"
Exec=ptyxis -- mutt %u
Terminal=false

—but they all result in two windows, because the DE opens one Ptyxis
instance and Ptyxis opens another for the command.

>From the GitLab issue and Christian Hergert’s comments, it looks like this
behavior is known but currently unavoidable due to how Ptyxis handles -x
and session restore.

If anyone here has found a workaround (for example, a different pattern for
the Exec= line that forces only a single window), I would very much
appreciate it.
Otherwise, it seems we may have to wait for upstream changes.

Thanks again for the pointer.

--
Marcelo

Enviado a partir de dispositivo móvel
https://linktr.ee/marcelolaia

Em qui., 4 de dez. de 2025, 07:29, Nuno Silva via Mutt-users <
[email protected]> escreveu:

> On 2025-12-04, Marcelo Laia wrote:
>
> Sounds like this:
>
> https://gitlab.gnome.org/chergert/ptyxis/-/issues/256
>
>
> --
> Nuno Silva
>
>

Reply via email to