Minimize to Tray and Sunbird

For discussing the Mozilla Calendar, Sunbird and Lightning projects.
Post Reply
Old Jaisen
Posts: 0
Joined: December 31st, 1969, 5:00 pm

Minimize to Tray and Sunbird

Post by Old Jaisen »

We all know the problem involved when installing this extension. Now, somewhere I read that the solution involves doing the following:

Solution: patch a Javascript file in the extension directory

\extensions\{31513E58-F253-47ad-86DB-D5F21E905429}\components\minimizeToTrayCmdLine.js

--

there, add a "return;" statement, immediatly after the function call:

cmdLineTest.prototype = {
return;
/* nsICommandLineHandler */

The person who was kind enough to provide the solution did not exactly tell people like myself how to proceed to apply his solution. Can anyone give me a clear explanation of how to proceed?
weishun
Posts: 210
Joined: July 31st, 2006, 3:04 pm

Post by weishun »

Do a search for the file, open it in a text editor, find "cmdLineTest.prototype = {", below it add "return; " and save the file.
Old Jaisen
Posts: 0
Joined: December 31st, 1969, 5:00 pm

Post by Old Jaisen »

That seems almost too simple... I should have understood it... Anyway thanks for your help. I guess I now know that patching just means adding info in a text editor. Cheers
Joined: 18 Jun 2005
weishun
Posts: 210
Joined: July 31st, 2006, 3:04 pm

Post by weishun »

Da nada. Unfortunately, "patching" doesn't always just mean "adding info in a text editor".
User avatar
Dustyakubra
Posts: 115
Joined: November 8th, 2004, 6:44 am
Location: Adelaide, Ooorstraiilya
Contact:

Post by Dustyakubra »

Works great for me :D I've submitted a patch to the bug.
Cameron
<a href="https://addons.mozilla.org">AMO Admin</a>.
Old WildcatRay
Posts: 0
Joined: December 31st, 1969, 5:00 pm

Post by Old WildcatRay »

It appears to do the trick for me and I am using it on SB Nightly.
harwinian
Posts: 10
Joined: March 25th, 2007, 6:18 am
Location: Birmingham UK

Post by harwinian »

WildcatRay wrote:It appears to do the trick for me and I am using it on SB Nightly.


Didn't work for me but I am using Vista Home Premium. Anybody got it to work on this OS yet?

Harwinian
SquiggyJahmal
Posts: 13
Joined: October 21st, 2004, 12:53 am

Post by SquiggyJahmal »

worked for me... winXP... sunbird 0.3.1
thanks for posting the fix
Soundjourney
Posts: 4
Joined: April 4th, 2007, 8:11 pm

Cannot find minimizeToTrayCmdLine.js

Post by Soundjourney »

Hi there -

I am having this double-loaded problem, and I scoured my hard drive for minimizeToTrayCmdLine.js; it's not in the location described above:

\extensions\{31513E58-F253-47ad-86DB-D5F21E905429}\components\minimizeToTrayCmdLine.js

In fact, the \extensions\{31513... folder does not have a \components folder in it...

What's up?

Thank you,

Shawn
spitfire23bc
Posts: 4
Joined: October 22nd, 2006, 7:25 am

Post by spitfire23bc »

Bump; I'm having the same problem as Soundjourney - the file "minimizeToTrayCmdLine.js" doesn't seem to exist.

Is there any other way to have Sunbird open minimised?
devotnik
Posts: 10
Joined: October 4th, 2004, 7:30 am

Post by devotnik »

The file referred to is in the profile.

In Windows, typically, C:\Documents and Settings\user\Application Data\Mozilla\Sunbird\Profiles\xyz123

Then \Extensions\{315 etc}\components\minimizeToTrayCmdLine.js

Exit any running Sunbird.

Find the string, key:
return;

Save the file. Restart Sunbird.

and . . . it works!
spitfire23bc
Posts: 4
Joined: October 22nd, 2006, 7:25 am

Post by spitfire23bc »

Thanks- found it. However, the version 0.5 pre-build I downloaded doesn't seem to support Minimise to Tray, and I'm having trouble rolling back to 0.3 *sigh* Can't win 'em all!
molokox
Posts: 4
Joined: October 31st, 2006, 11:15 pm

Post by molokox »

For installing minimizetotray in Sunbird 0.5, you need to edit the install.rdf in the .xpi and change the version number to 0.5

Code: Select all

      <Sunbird>
      <Description>
        <em>{718e30fb-e89b-41dd-9da7-e25a45638b28}</em>
        <em>0.2</em>
        <em>0.5</em>
      </Description>

You can do this with 7zip or winrar etc...
Stephana
Posts: 1
Joined: August 2nd, 2007, 6:11 pm

Post by Stephana »

Thank you molokox.
I followed your directions.. opened the MTT file with WinRar, extracted the install file, changed the number, updated the file in winrar and viola!!

Thank you so much for this
traveling
Posts: 1
Joined: October 24th, 2007, 9:51 pm

Post by traveling »

Worked great for me. Thanks million.
Post Reply