Single-instance GApplication breaks when used with Flatpak
Hi, first of all, thanks a lot for your work, Ptyxis is a joy to use on a daily basis!
When lunching a new Ptyxis terminal (window/tab/instance) as a background task, it sometime fail with Failed to register: Timeout was reached
. I am not entirely sure if the issue is actually from Ptyxis or from Flatpak.
Some context, I have a program that will try to spawn terminal windows to interact with PTS. I am trying to use Ptyxis for that, so I give the following command to the program:
flatpak run org.gnome.Ptyxis.Devel --new-window
So, for example, the program will try to spawn 5 windows, only 2 may be spawned. Some seconds later, I see the Failed to register...
message.
I manage to reproduce the issue with the following Bash code snippet:
#!/usr/bin/env bash
for i in $(seq 1 5); do
flatpak run org.gnome.Ptyxis.Devel --new-window &
done
wait
Why I think this is an issue is because when I try to do the same thing with other terminals (gnome-terminal, xterm, kitty) all the windows are spawned. Now as I said, I am not sure if the issue come from Ptyxis or Flatpak (I found issues online related to Flatpak with the same error message.
I know there isn't much details but I don't know what I can do to get more information. I would gladly help debugging/fixing the issue (if this is indeed an issue).