Can you provide a specific example?
Say you're using KDE and at a command prompt in a Konsole window you launch Gimp by typing
Now if you close that Konsole window then Gimp will also close. If you launch Gimp like this:
Then close the Konsole window then Gimp stay running.
Is this the sort of thing you're talking about?