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)