MozillaZine

Minimize to Tray and Sunbird

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

Post Posted January 3rd, 2007, 10:31 am

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 Posted January 3rd, 2007, 2:09 pm

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 Posted January 3rd, 2007, 11:15 pm

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 Posted January 3rd, 2007, 11:40 pm

Da nada. Unfortunately, "patching" doesn't always just mean "adding info in a text editor".

Dustyakubra

User avatar
 
Posts: 115
Joined: November 8th, 2004, 6:44 am
Location: Adelaide, Ooorstraiilya

Post Posted March 6th, 2007, 9:41 pm

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 Posted March 18th, 2007, 8:05 am

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 Posted March 25th, 2007, 2:27 pm

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 Posted April 2nd, 2007, 8:15 am

worked for me... winXP... sunbird 0.3.1
thanks for posting the fix

Soundjourney
 
Posts: 4
Joined: April 4th, 2007, 8:11 pm

Post Posted April 5th, 2007, 8:08 pm

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 Posted April 25th, 2007, 5:44 am

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 Posted April 27th, 2007, 9:44 am

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 Posted April 28th, 2007, 2:38 am

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 Posted May 28th, 2007, 8:51 pm

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 Posted August 2nd, 2007, 6:15 pm

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 Posted October 24th, 2007, 10:01 pm

Worked great for me. Thanks million.

Return to Calendar


Who is online

Users browsing this forum: No registered users and 0 guests