LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Installing Netscape Navigator 9.0b3 (https://www.linuxquestions.org/questions/linux-newbie-8/installing-netscape-navigator-9-0b3-586467/)

Lord Of Light 09-21-2007 09:43 PM

Installing Netscape Navigator 9.0b3
 
I get this error after doing ./navigator.
*** e = [Exception... "ServiceManager::GetService returned failure code:" nsresult: "0x80570016 (NS_ERROR_XPC_GS_RETURNED_FAILURE)" location: "JS frame :: chrome://browser/content/utilityOverlay.js :: getShellService :: line 328" data: no]
Navigator still pops up but if I close the terminal Navigator shuts down too. Please be gentle I`m a noobie.:)

blackhole54 09-21-2007 10:09 PM

Quote:

Originally Posted by Lord Of Light (Post 2899808)
Navigator still pops up but if I close the terminal Navigator shuts down too.

I don't know about the error message, but it is normal for the program to shut down when you close the terminal. If you don't want that to happen, then you need to put the command in the "background" by following the command with an ampersand. And if you do that, you probably want to redirect STDOUT and STDERR some place. If you want to background the process and just throw away all output, then:

Code:

./navigator > /dev/null 2>&1 &
All of this can be avoided if you just start the program from a menu, an icon, or the "run" command, which is how programs are usually started in a GUI.

EDIT: I left out a step for making the program persist after the terminal is closed ... You also need to tell the shell (terminal) to "disown" the process. You can combine both of these into one step:

Code:

./navigator > /dev/null 2>&1 & disown $!
In this case the ampersand both backgrounds the process and separates the commands. "$!" just refers to the last process that was backgrounded. If this seems overwhelming, just "cookbook" for now and hopefully, in time you will come to understand it.


All times are GMT -5. The time now is 03:16 PM.