LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-03-2007, 11:23 AM   #1
rrandrews
LQ Newbie
 
Registered: Oct 2007
Posts: 11

Rep: Reputation: 0
Opening windowed apps from a console


Simple question: say I'm working in a terminal window and I want to launch a windowed application (a text editor or something)--is there a way I can do that without it tying up that session?
 
Old 10-03-2007, 11:28 AM   #2
rrandrews
LQ Newbie
 
Registered: Oct 2007
Posts: 11

Original Poster
Rep: Reputation: 0
Found the answer in the similar threads list below!

Silly Querstion RE: Opening apps from console
 
Old 10-03-2007, 11:31 AM   #3
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,812
Blog Entries: 1

Rep: Reputation: 259Reputation: 259Reputation: 259
You mean that after you launch the GUI app, you return to a command prompt in the terminal? If that's what you mean, launch your GUI app (or any other) with a single ampersand (&) following the name. For example, to launch gedit and return to the prompt
Code:
127 files in /home/weibullguy
weibullguy@weibullone for 98D10h33m $ gedit &
127 files in /home/weibullguy
weibullguy@weibullone for 98D10h33m $
I'm too slow...

Last edited by weibullguy; 10-03-2007 at 11:32 AM. Reason: Too slow..
 
Old 10-03-2007, 11:44 AM   #4
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
If you want to launch or from that tereminal, just put it in the background like this:
Code:
firefox &
You may find that the GUI app prints a load of ugly stuff to the terminal as it runs, so it might be a nice idea to re-direct that the /dev/null:
Code:
firefox > /dev/null 2>&1 &
.
You will find that many (although by no means all) GUI programs which are running in the background of your terminal will die when the terminal closes. To prevent this you can use nohup. You don't need to redirect the output in this case as nohup does it for you:
Code:
nohup firefox &
.
 
Old 10-03-2007, 11:48 AM   #5
rrandrews
LQ Newbie
 
Registered: Oct 2007
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks to you both!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can GLX / Compiz cause, my OpenGL game apps work only in windowed mode? gerytay Linux - Games 2 10-30-2006 05:46 AM
some apps opening after a few minutes delay 666 Debian 6 08-21-2006 10:25 AM
Silly Querstion RE: Opening apps from console Boyer Linux - Software 2 06-15-2005 08:24 PM
opening files w/ apps phantom4 Linux - Software 2 09-20-2003 10:10 PM
window placement when opening apps tambu Linux - Newbie 1 05-06-2003 09:54 AM


All times are GMT -5. The time now is 05:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration