LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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-09-2009, 08:42 PM   #1
Zarshir
LQ Newbie
 
Registered: Oct 2009
Posts: 3

Rep: Reputation: 0
Question Starting graphical app in background (non-active) window


Hey guys, I'm trying to start up a program through gnome-terminal on Fedora 10 and am wondering if there is any way to start one without losing focus on whatever windows I already have open (such as the terminal and anything else in the background). Thanks for any help!
 
Old 10-10-2009, 12:03 AM   #2
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
to start an application and place it in the background you would use the following
Code:
application_name &
this will place the application in the background. Then use the fg command to bring it back into focus.
 
Old 10-10-2009, 12:49 AM   #3
Zarshir
LQ Newbie
 
Registered: Oct 2009
Posts: 3

Original Poster
Rep: Reputation: 0
That's not exactly what I meant (and I knew there would be confusion just because of the similar phrasing to other things)... I don't need the process to try to run in the background (which actually won't work), I need the window of the application to open, but in the background not focused.

Maybe an example will help. Say I'm writing a bash script to open my favorite webbrowser to go to a certain website at a certain time (I'm not, but I think the problem is similar). If I'm typing in an unrelated program when it calls it, say a word processor or playing a game, I don't want it to interupt what I'm doing; however, I still want it open (just behind the opened windows, aka not focused).
 
Old 10-10-2009, 07:59 AM   #4
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by Zarshir View Post
That's not exactly what I meant (and I knew there would be confusion just because of the similar phrasing to other things)... I don't need the process to try to run in the background (which actually won't work), I need the window of the application to open, but in the background not focused.

Maybe an example will help. Say I'm writing a bash script to open my favorite webbrowser to go to a certain website at a certain time (I'm not, but I think the problem is similar). If I'm typing in an unrelated program when it calls it, say a word processor or playing a game, I don't want it to interupt what I'm doing; however, I still want it open (just behind the opened windows, aka not focused).
Well I understand now what you want. However I am not sure on how to accomplish that.
 
Old 10-10-2009, 05:27 PM   #5
Zarshir
LQ Newbie
 
Registered: Oct 2009
Posts: 3

Original Poster
Rep: Reputation: 0
All right, thanks for your help anyway!

Anyone else have any ideas? How about opening something minimized? Maybe something I can do through X or GNOME?
 
  


Reply



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
Starting new terminal window or tab from existing window remaining as root? homerun Linux - Newbie 1 08-14-2009 11:34 AM
Gnome: Starting an app switches to a running instance instead of starting a new one SeppJ Linux - Newbie 0 05-28-2009 10:06 AM
How to send characters on to the active window using X Window? abhinav.zoso Programming 3 01-24-2009 02:08 PM
Running an app in background mode Naikon Linux - Newbie 4 08-30-2006 04:23 PM
looking for desktop/background stats app tommyj27 Linux - Software 1 03-22-2005 06:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:47 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
Open Source Consulting | Domain Registration