You are here

Using Notepad++ Portable's "Launch in Firefox" with Firefox Portable

7 posts / 0 new
Last post
computerfreaker
computerfreaker's picture
Offline
Last seen: 13 years 2 months ago
Developer
Joined: 2009-08-11 11:24
Using Notepad++ Portable's "Launch in Firefox" with Firefox Portable

I have Notepad++ Portable and Firefox Portable; I'd really like to use Notepad++'s "Launch in Firefox" feature to launch Firefox Portable with the current Npp page. In other words, instead of having "Launch in Firefox" open the locally-installed version of FF, it should open the portable version of FF...
I know there's a way to do this (there's a shortcuts.xml file that I can edit), but hard-coding paths doesn't seem to be a good way to do things...
btw, this is probably important - here's my folder structure.

Portable apps
-----Firefox 3.0.13 Portable
-----FirefoxPortable (web development)
-----Notepad++Portable

I want Notepad++ to use FirefoxPortable (web development), and ideally I could "soft-code" the paths...

Thanks! Biggrin

computerfreaker

One of Many
Offline
Last seen: 15 years 2 months ago
Joined: 2006-01-06 13:06
If you open whichever Firefox

If you open whichever Firefox you want it to open in first, anything that would normally run in the local version will instead open in the currently running instance.

I feel like that sentence was poorly worded, but my brain is dead at the moment...

computerfreaker
computerfreaker's picture
Offline
Last seen: 13 years 2 months ago
Developer
Joined: 2009-08-11 11:24
No luck :(

Thanks for the reply, One of Many. I understood you perfectly... unfortunately, that didn't work for me.
Opened Notepad++ Portable
Opened Firefox Portable
Used Notepad++'s "Launch in Firefox" command - launched the local install of FF

I thought that maybe I should open FF portable first, so I tried it again...
Closed Notepad++
Closed Firefox Portable
Closed Firefox local

Opened Firefox Portable
Opened Notepad++ Portable
Used Notepad++'s "Launch in Firefox" command - launched the local install of FF again.

Any other ideas?

"The question I would like to know, is the Ultimate Question of Life, the Universe and Everything. All we know about it is that the Answer is Forty-two, which is a little aggravating."

Bensawsome
Offline
Last seen: 2 years 9 months ago
Joined: 2006-04-22 19:27
Impossible...

That's impossible. Firefox can only have one instance of it open at a time unless you set a special setting in Firefox Portable. Have you done that?
Thanks,
Bensawsome

 iLike Macs, iPwn, However you put it... Apple is better ^_^ 
"Claiming that your operating system is the best in the world because more people use it is like saying McDonalds makes the best food in the world..."

computerfreaker
computerfreaker's picture
Offline
Last seen: 13 years 2 months ago
Developer
Joined: 2009-08-11 11:24
yep

yes, I've set that setting... I frequently need Firefox local and Firefox portable open at the same time (this is courtesy of a shared, dialup Internet connection - my sister uses Firefox local and I use Firefox Portable), so I have no choice but to set it...
Also, I run two versions of FF Portable at once - my browsing FF, and my web-development FF.
Please don't tell me I need to remove that multiple-instances setting... Sad

"The question I would like to know, is the Ultimate Question of Life, the Universe and Everything. All we know about it is that the Answer is Forty-two, which is a little aggravating."

Jimbo
Offline
Last seen: 4 years 10 months ago
Joined: 2007-12-17 05:43
sadly...

the way to run multiple instances of Firefox (portable or otherwise) hinges on passing the command line parameter "-no-remote" when launching it, which means that it will not be controllable from an external app, and will neither try to activate an already running FF instance, nor will it respond to future such attempts from new executions of Firefox.

Which means that if you're running in multiple-instance mode, there is no way that you can get it to pop forward like that. Sorry.

You might want to look at Browser Chooser ( http://browserchooser.codeplex.com/ ). I don't know if it will help you do what you need, but it may be worth a try.

computerfreaker
computerfreaker's picture
Offline
Last seen: 13 years 2 months ago
Developer
Joined: 2009-08-11 11:24
Interesting... EDIT: Got it!

I set the AllowMultipleInstances = true flag in FirefoxPortable.ini... does that "wrap" the no-remote switch?
Browser Chooser is very interesting... I think I'll check it out. Hope it recognizes portable apps...

DIFFERENT IDEA: How about changing a Notepad++ setting? If I change the shortcuts.xml file, will I be able to soft-code the path to FF portable? IMHO, this could be my best bet...
EDIT: got it!!! Biggrin
The way to do it is, in fact, changing the shortcuts.xml file... here's what I did.

This:
<Command name="launch in Firefox" Ctrl="yes" Alt="yes" Shift="yes" Key="88">firefox &quot;$(FULL_CURRENT_PATH)&quot;</Command>

became this:
<Command name="launch in Firefox" Ctrl="yes" Alt="yes" Shift="yes" Key="88">&quot;$(NPP_DIRECTORY)\..\..\..FirefoxPortable (web development)\FirefoxPortable.exe&quot; &quot;$(FULL_CURRENT_PATH)&quot;</Command>

btw, just for the record...
My directory structure is like this:

Portable apps
-----FirefoxPortable (web development)
-----Notepad++Portable

(of course, there are other apps in there too, but those are the relevant ones - the relative path might need to be changed for others' directory structures)

Thanks for the help, everyone! Smile

"The question I would like to know, is the Ultimate Question of Life, the Universe and Everything. All we know about it is that the Answer is Forty-two, which is a little aggravating."

Log in or register to post comments