-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
flatpak-spawn --host doesn't work with apps requiring tty/pty #57
Comments
I'm not sure if https://gitlab.gnome.org/chergert/flatterm/-/blob/master/fp-vte-util.c#L33-56 |
I see. Is this also related to flatpak/flatpak#3697 then ? |
It looks the same yes. |
IMHO If would be great if flatpak-spawn could be changed to remediate this. I find myself running quite a few programs using it. |
I'm not familiar enough with it to do it atm, but I'll review a patch adapting those solutions, perhaps with a new flag to avoid breaking anything. |
I have been working on an alternative reimplementation of Improvements over
It's a reimplementation because I was more comfortable with exploring this problem in Go instead of hacking the original C code base, but it's in the public domain so feel free to use my code to fix |
I've implemented a similar pseudo-terminal bridge in GObject-flavoured C as part of (Due credit: the pseudo-terminal juggling is derived from similar code in systemd.)
Those are implemented.
I'm unsure about this: it might be a good enhancement, but I'd want to provide a way to not do this, because if we unconditionally overwrite an environment variable that was inherited from the server (flatpak-session-helper or flatpak-portal), there's usually no good way to get it back. |
The way I ended up doing this for |
Not a bad idea, though I'm not sure which programs benefit from not having Looking forward to see your changes merged with flatpak-spawn. Do you have a standalone repo for |
Temporary workaround for the following flatpak-spawn bug: flatpak/flatpak-xdg-utils#57 Idea taken from here: contour-terminal/contour#794
Temporary workaround for the following flatpak-spawn bug: flatpak/flatpak-xdg-utils#57 Idea taken from here: contour-terminal/contour#794
Hey @smcv, gentle ping on this - do you still have plans to upstream the mentioned changes? That would be much appreciated! |
FWIW, I found it here: https://gitlab.steamos.cloud/steamrt/steam-runtime-tools/-/blob/main/bin/launch-client.c |
This is still on my list, but my list is very long. There is a bug somewhere in the implementation used in steam-runtime-tools where it will sometimes go into a busy-loop when using this interface to inject commands into a Flatpak app, probably because end-of-file works oddly for terminals. I think solving that is likely to be a prerequisite for upstreaming it into flatpak-spawn. |
Currently, is there a way to kill a (frozen) process started via I need to kill Krita from my code (because it freezes when you try to run a second instance of the program) but killing the process resulting from |
Ah I see. Interesting. So it seems that if send SIGINT or SIGTERM to the process of |
SIGKILL cannot be caught, which means cannot be passed through via DBus to the other process. The kernel will just terminate the flatpak-spawn process with no questions asked.
…On Mon, 29 Jan 2024, at 18:57, geekley wrote:
Ah I see. Interesting. So it seems that if send SIGINT or SIGTERM to the process of `flatpak-spawn` then it terminates the other process under `flatpak-session-helper`. However, if I send SIGKILL, then that process doesn't kill the other process. Because presumably it would be impossible in this case to re-pass the signal?
—
Reply to this email directly, view it on GitHub <#57 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAFIPSHTVQNEVTOMI7VAHNTYQ7WHZAVCNFSM5KG3S4VKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOJRGUZTMNJVGYZQ>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
I've also noticed some apps like neovim are not rendering properly and glitch when being resized. It feels like working in serial console in general.
The text was updated successfully, but these errors were encountered: