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
-
Hi everyone! I have a task to write a script to create a terminal-based menu for
launching
flatpak
applications (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.fish
script (referred later as gui) to execute launcherand pass several additional options for
gnome-terminal
like--zoom 1.5
(full code is available here)
flatpak
application(full code is available here)
The problem is that the gui is not closed when the
flatpak
application 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.firefox
but 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