Answer by Jonathan Komar for How to cleanly launch a GUI app via the Terminal?
xdg-open Have a look at this general-purpose utility: https://linux.die.net/man/1/xdg-open This will open a relative location in your file manager. $ xdg-open . This will open a pdf file in a pdf...
View ArticleAnswer by Eyal Levin for How to cleanly launch a GUI app via the Terminal?
This worked for me: $ (some-program &) &>/dev/null # Examples: $ (gedit &) &>/dev/null $ (google-chrome &) &>/dev/null
View ArticleAnswer by Sam for How to cleanly launch a GUI app via the Terminal?
This works even inside a script (Like aliases, the '&' trailer is not normally allowed in scripts because they are not interactive): bash -i >/dev/null 2>&1 <<<'nohup gedit &'
View ArticleAnswer by Lokesh Devnani for How to cleanly launch a GUI app via the Terminal?
As a lot of people figured, nohup is the thing to consider. But nohup stills remains open on the terminal and displays the program activity on the terminal which is irritating. You can just close the...
View ArticleAnswer by wesleycoder for How to cleanly launch a GUI app via the Terminal?
This worked for me: $ (nohup gedit 2>/dev/null &)
View ArticleAnswer by RobinJ for How to cleanly launch a GUI app via the Terminal?
Open the terminal, type screen, type the command you want to run, close the terminal. The program should keep on running in the GNU Screen session.
View ArticleAnswer by con-f-use for How to cleanly launch a GUI app via the Terminal?
Suppose gedit is the program you want to run detached (aka. "disowned", "disentangled", "decoupled"). There are different ways depending on what you want to do exactly: Program already running Disown:...
View ArticleAnswer by Oli for How to cleanly launch a GUI app via the Terminal?
In gedit's case, I just keep a copy open all the time. As long as you have an existing copy running, launching gedit calls from the terminal and then closing the terminal won't kill gedit. For other...
View ArticleAnswer by Florian Diesch for How to cleanly launch a GUI app via the Terminal?
Use nohup nohup is a program that runs a given command with hangup signals ignored, so that the command can continue running in the background after its parent process terminates. See the manpage For...
View ArticleAnswer by Rick for How to cleanly launch a GUI app via the Terminal?
To start an application and detach it from the launched terminal use &!. firefox &!
View ArticleAnswer by Roger Pate for How to cleanly launch a GUI app via the Terminal?
The mysterious ampersand "&" suffix, seems to cause the terminal to put the process into the background... (but I'm not sure what happens there). It does, and is often what you want. If you forget...
View ArticleHow to cleanly launch a GUI app via the Terminal?
Some GUI apps launch cleanly via the Terminal command line, but some don't, and they cause the Terminal to wait for the app to terminate. Even then, some don't "release" the command line. The...
View Article