WelcomeUser Guide
ToSPrivacyCanary
DonateBugsLicense

©2025 Poal.co

301

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)

[–] 0 pt (edited )

Yeah I'm pondering about resorting to a while loop, that's where I'm at... And I can't help but think this is bordering on a hack. I have a hard time believing there's no built in feature to handle such trivial case. i mean, that's not like waiting for a program to fully load before exiting the terminal is some sort of planck wall or ultimate frontier beyond which no man ever went. At least a billion of people had to do this at some point before me, and it's crazy that there's no built in feature to do just that in an elegant way without resorting to custom long ass script for what's in the end a basic command to run as alias