Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19
Firefox target script for external apps
Results 1 to 3 of 3

Thread: Firefox target script for external apps

  1. #1
    Mentor jro's Avatar
    Join Date
    May 2004
    Location
    Pennsylvania, USA
    Posts
    1,206

    Firefox target script for external apps

    I use this so much with out thinking that I completely forgot I made it a while ago, I thought I would share. Anytime I tried to target the Firefox binary from an external app, Firefox would ask me to use another profile since the default one was in use and Firefox didn't like multiple instances of itself running.

    Its simple and to the point. Essentially it checks for a running instance of a target Mozilla-based browser, then either creates a new instance or a new tab. You can use the commented out line to create a new window rather than a new tab. Copy and paste this into a file, make it executable, stick it someplace handy and target it with your apps that need a browser. (OpenOffice, Email App, etc.)

    Code:
    #!/bin/bash
    
    #Path to the Mozilla-based browser binary (alliterate much?)
    MOZILLA=/usr/share/firefox/firefox
    
    if ($MOZILLA -remote "ping()"); then
                 $MOZILLA -remote "openurl($1, new-tab)" &
                 #$MOZILLA -remote "openURL (URL, new-window)" &
    else
            $MOZILLA $1 &
    fi
    Let me know if you have any questions.
    jro -
    To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

    Linux counter#:213782
    GnuPG ID: 406238E7

  2. #2
    Advisor
    Join Date
    Apr 2004
    Location
    orlando
    Posts
    608
    nice one, i hate that profile shit, i'll have to try this

  3. #3
    Mentor
    Join Date
    May 2004
    Location
    Louisiana
    Posts
    1,206
    Gracias, amigo.

Similar Threads

  1. changing Firefox proxy config by script
    By xylex_blaiste in forum Programming
    Replies: 2
    Last Post: 02-26-2007, 07:54 AM
  2. HOWTO - Making a Public Mtp-Target Server
    By babbing in forum Linux - Software, Applications & Programming
    Replies: 0
    Last Post: 01-14-2005, 12:36 PM
  3. Getting Firefox to run by editing firefox shell and editing moz_libdir
    By basho in forum Linux - Software, Applications & Programming
    Replies: 1
    Last Post: 03-28-2004, 04:57 AM
  4. SCO Names 1st Lawsuit Target: AutoZone
    By trickster in forum Linux - General Topics
    Replies: 8
    Last Post: 03-11-2004, 02:45 AM
  5. SCO's next target: SGI?
    By mcdougrs in forum General Chat
    Replies: 0
    Last Post: 09-08-2003, 02:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •