Using launchy.xml to start Firefox Portable from Thunderbird Portable and vice versa

I got a email the other day asking if it is possible by using my Mozilla addon Launchy to start the Firefox Portable with within the Thunderbird Portable. So when you use Thunderbird Portable and right click on a link you can choose Firefox Portable. And when you from within Firefox Portable right click on a mailto link can choose Thunderbird Portable. And the answer is yes.

Lets say you installed Firefox Portable and Thunderbird Portable on your USB stick. Firefox Portable is installed so that the full path to the executable is something like USB_DRIVE_LETTER:\FirefoxPortable\FirefoxPortable.exe and the full path to the Thunderbird Portable executable is USB_DRIVE_LETTER:\ThunderbirdPortable\ThunderbirdPortable.exe.

The solution is to use the launchy.xml and and the %GeckoDrive% variable. The launchy.xml file is used by Launchy to add additional applications, besides those autodetected, to the right click option. The %GeckoDrive% variable always holds the drive letter from which the Gecko application was started. So if Firefox Portable was started from the drive letter Z the %GeckoDrive% variable is set to "Z:". Not that %GeckoDrive% also includes the semicolon after the drive letter.

The gives us the possibility to create a launchy.xml file that looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<configurations xmlns="http://launchy.mozdev.org/configurations">
  <application>
    <label>Firefox Portable</label>
    <type>1</type>
    <command>%GeckoDrive%\FirefoxPortable\FirefoxPortable.exe</command>
  </application>
  <application>
    <label>Thunderbird Portable</label>
    <type>2</type>
    <command>%GeckoDrive%\ThunderbirdPortable\ThunderbirdPortable.exe</command>
  </application>
</configurations>

To get it working you have to place the above text in file called launchy.xml in these two directories:
USB_DRIVE_LETTER:\ThunderbirdPortable\Data\profile\chrome\
USB_DRIVE_LETTER:\FirefoxPortable\Data\profile\chrome\

This way the next time you start your Firefox Portable or Thunderbird Portable the right click Launchy option will show you the Portable options.


August 30, 2006 01:00 PM | Posted in Mozilla

Ads:

Back Next

0 Comments

Post a comment




Remember Me?




Please enter the security code you see here

.
You're here: Home - Using launchy.xml to start Firefox Portable from Thunderbird Portable and vice versa
Get the Mozilla Firefox browser