LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 08-08-2004, 08:42 AM   #1
tuxq
Member
 
Registered: Feb 2003
Location: USA
Distribution: Slackware-current
Posts: 47

Rep: Reputation: 15
Mozilla (official) Open New Window script


I've been googlin' for a while trying to find the actual (official) Open New Window script from Mozilla.org ... I've found it pasted into forums, but I was hoping to get the link because some people tend to leave things out.

And before you say "why not ctrl-N? how hard is that?" ... I usually have windows on top of windows on top of windows because I do several things at once (wow, multitask, who would have thought?).

Thanks in Advance.
 
Old 08-10-2004, 07:43 PM   #2
wipe
Member
 
Registered: Jun 2004
Location: High Green
Distribution: Fedora Core 4
Posts: 180

Rep: Reputation: 30
You mean the script that opens a new Mozilla window instead of the Profile Manager? The one that first checks whether Mozilla is running and if it is, uses the openURL remote command?

Look what I found in the launch script firefox, in package firefox-0.9.3-i686-linux-gtk2+xft-installer.tar.gz:

Code:
# The following is to check for a currently running instance.
# This is taken almost verbatim from the Mozilla RPM package's launch script.
MOZ_CLIENT_PROGRAM=$dist_bin/mozilla-xremote-client
check_running() {
    $MOZ_CLIENT_PROGRAM -a firefox 'ping()' 2>/dev/null >/dev/null
    RETURN_VAL=$?
    if [ $RETURN_VAL -eq 0 ]; then
        echo 1
        return 1
    else
        echo 0
        return 0
    fi
}

ALREADY_RUNNING=`check_running`

if [ $ALREADY_RUNNING -eq 1 ] && [ -z "$1" ]; then
   exec $MOZ_CLIENT_PROGRAM -a firefox "xfeDoCommand(openBrowser)" 2>/dev/null >/dev/null
fi
# End of section that checks for currently running instance. - jtg
This is as official as it gets. It's nice to see that it's finally been implemented in Firefox. Saves many people from headaches. They use mozilla-xremote-client to open the new window.

Regards
Simon

Last edited by wipe; 08-10-2004 at 07:58 PM.
 
  


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
Javascript - what to use rather than window.close() then window.open() davee Programming 2 04-11-2005 08:28 AM
Mozilla Firefox open new window script Pathian Linux - Software 17 08-12-2004 12:37 PM
bash script - open new window running a command zippity Linux - Newbie 1 07-13-2004 11:16 AM
Open a new Mozilla window linuxnube Linux - Software 3 05-17-2004 11:33 PM
RedHat 9 Script to open and close Mozilla? ArosemenaA Linux - Newbie 21 04-29-2003 01:16 PM


All times are GMT -5. The time now is 11:18 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration