Different ways in which applications are Launched.


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Different ways in which applications are Launched.
# 1  
Old 04-04-2011
Different ways in which applications are Launched.

How does X windows system launch a program?

Does X give init a command (fork) or does x give BASH a command? Can/does X interact with init directly or does everything go through BASH? Smilie

Thanks in advance!
# 2  
Old 04-04-2011
Consider that in either way you suggest, it'd be done through a fork().

But how things get run really depends on how you run them... I don't think the X server runs anything directly aside from what's in your ~/.xinitrc, which gets parsed as a script file... Once X is done logging you in, what things are run how is entirely up to the control of application programs.

Did I ever manage to answer your questions in the other thread?

Last edited by Corona688; 04-04-2011 at 07:46 PM..
This User Gave Thanks to Corona688 For This Post:
# 3  
Old 04-04-2011
Thanks for the Reply!

If init needs the fork command to start a new process , what is inbetween clicking a mouse button and starting the new process? Which alreadly occuring process issues the fork command?


On the topic of the last topic I was able to form my own definiton of what is a terminal and what is console I think.

Thanks in advance!
# 4  
Old 04-04-2011
Quote:
Originally Posted by theKbStockpiler
If init needs the fork command to start a new process
Init unlikely ever starts X clients. Init is a low level process. Clients are launched by X11 initialization scripts or later by user interaction with existing clients.
Quote:
, what is inbetween clicking a mouse button and starting the new process? Which alreadly occuring process issues the fork command?
That can be a window manager, a desktop environment component or whatever process.
This User Gave Thanks to jlliagre For This Post:
# 5  
Old 04-06-2011
Quote:
Originally Posted by theKbStockpiler
If init needs the fork command to start a new process , what is inbetween clicking a mouse button and starting the new process? Which alreadly occuring process issues the fork command?
Anything can fork(), not just init. X runs applications or a window manager when it starts and those applications fork().
 
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Execute a command after a program was launched

Hi Experts, I am creating a script to monitor a certain applications running in my Unix system. My script order goes this way: df -h /of/a/filesystem tail -5 /path/to/an/application/availability su -c "jsmon pf=(profile of my application) `echo "p"`" usradm #EOF I am... (7 Replies)
Discussion started by: Xworks
7 Replies

2. Debian

After saving a pic, gimp should not be launched

Hi, i use a crunchbang-LINUX . The Problem: When i download and save a picture, the system automaticaly launches gimp. i tried to find a config file, were i can switch of this "gimp-start," but unfortunatelly i didnt find it. cat /etc/X11/default-display-manager /usr/bin/slim I'm also not... (2 Replies)
Discussion started by: IMPe
2 Replies

3. Shell Programming and Scripting

script run when executable is launched

I need to know how to have a BASH script run every time Firefox is launched, what is the simplest way to do this? (1 Reply)
Discussion started by: glev2005
1 Replies

4. Shell Programming and Scripting

Kill remote application launched via SSH command

Hi All I launch some application in a remote machine using ssh EXAMPLE ssh -X myname@mycompany@RemoteServerIp 'myApplicationName' When I want to kill the application I hit CTRL+C and I see a message 'Killed by signal 2'. Unfortunately on the remote machine the application is not really... (1 Reply)
Discussion started by: manustone
1 Replies

5. UNIX for Dummies Questions & Answers

Lastlog and launched process

Hello there, I "discovered" an interesting command lastlog, but I couldn't find, until now:cool:, if it's possible to get a list of the launched process by users and root during a certain of time... ...any idea would be really appreciated!!! Thanks in advance. Giordano Bruno (3 Replies)
Discussion started by: Giordano Bruno
3 Replies

6. UNIX for Advanced & Expert Users

is there a way to find out the tty from which the process is launched

Hi all, There is an application which can be launched once on our box and there are several suspected users telnet into the system with the same login ID. Is there a way that i can find out from which tty the application is launched? If so, i can get the user name from the "finger"... (1 Reply)
Discussion started by: sleepy_11
1 Replies
Login or Register to Ask a Question