title: How to launch firefox from C program/daemon under Linux
body: <p>I am having some problems with launching firefox from a Linux daemon written in C.
  When I launch firefox on the machine itself (via terminal) from the command shell using <code>/usr/bin/firefox</code> it works OK and a firefox browser window lanunches as it should.</p>
  
  <p>However if I try this within my C daemon using <code>system("/usr/bin/firefox")</code>, firefox launches its process in the terminal but the browser window is not opened?</p>
  
  <p>A similar thing happens when I try to do this using remote terminal acces. It's something to do with telling the system to open firefox in window mode rather than trying to open it in terminal mode - but I dont know how to specify this using bash commands?</p>
  
  <p>I am using Lubuntu 11.10 in my Linux System.<br>
  Any help is most appreciated.</p>