Script doesn't terminate itself when expected to #647
Unanswered
EmilyGraceSeville7cf
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone! I have a task to write a script to create a terminal-based menu for
launching
flatpakapplications (referred later as launcher). launchershould allow me to choose the application to run and then close itself when the
picked application is started.
To implement this I've done this:
gui.fishscript (referred later as gui) to execute launcherand pass several additional options for
gnome-terminallike--zoom 1.5(full code is available here)
flatpakapplication(full code is available here)
The problem is that the gui is not closed when the
flatpakapplication is started.To reproduce this issue I've found a minimal code to show what's going on:
gui:
and launcher:
How to fix this issue?
Edit: partial solution is to use
gum spin -- setsid flatpak run org.mozilla.firefoxbut itjust prevents chosen application from being closed when the terminal is terminated, it doesn't
force terminal to close itself. And from what I've noticed the terminal instance closes just
when it's not the first terminal instance.
Beta Was this translation helpful? Give feedback.
All reactions