WelcomeUser Guide
ToSPrivacyCanary
DonateBugsLicense

©2025 Poal.co

1.3K

So NOT "firefox & exit" in the case of firefox for instance

Nor "firefox && exit"

And no "firefox & sleep 3 && exit" for example, since the program will take much less time to load after the first launch

...

I find it incredibly difficult to find doc about how to do, "just that"

EDIT: Thanks to , this does the trick https://poal.co/s/Linux/280077/94304351-dd6d-4afe-b808-7e46ec88cdcd#cmnts

>firefox & xdotool search --sync --onlyvisible --class firefox && exit

So NOT "firefox & exit" in the case of firefox for instance Nor "firefox && exit" And no "firefox & sleep 3 && exit" for example, since the program will take much less time to load after the first launch ... I find it incredibly difficult to find doc about how to do, "just that" EDIT: Thanks to @Obvus, this does the trick https://poal.co/s/Linux/280077/94304351-dd6d-4afe-b808-7e46ec88cdcd#cmnts >>firefox & xdotool search --sync --onlyvisible --class firefox && exit

(post is archived)

[+] [deleted] 1 pt
[–] 0 pt

No Hangup...

$ nohup firefox & [1] 23814 nohup: ignoring input and appending output to 'nohup.out'

Detach from terminal, be sure to get the correct job # from above

$ disown %1

No longer attached...

$ jobs

$

[–] 0 pt

I don't see how this is supposed to exit the terminal only once the application is fully loaded or starts to appear on screen

[–] 1 pt

You're correct, it doesn't. How about:

$ firefox & xdotool search --sync --onlyvisible --class firefox && exit

[–] 0 pt

Yes

This does the trick, thank you a bunch Obvus

[–] 0 pt

Semicolon exit?

./runme.sh; exit;

[–] 0 pt

Nope, it exits only when the program quits... Just like a ./runme.sh && exit