In Ubuntu (21.10), I start a file manager from the command line window (gnome terminal 3.38.1):
nemo .
Sometimes, the command line returns and I can enter more commands. Sometimes, the command line is blocked by the running process until I close the file manager window.
I know that I can launch the process in the background (by appending "&"). But what I do not understand are the conditions that cause this behavior to differ between sessions. What is the cause?