Mozilla extension: Minimize windows into the system tray (Firefox, Thunderbird, Seamonkey, Instantbird)
Clone or download
Latest commit 51df149 Aug 6, 2016
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets Get assets in order Aug 4, 2016
build Remove path.py from tree Aug 5, 2016
chrome Get assets in order Aug 4, 2016
defaults/preferences Implement "Show Always" Aug 23, 2013
lib Remove windowState hack. Aug 23, 2013
lib_unix/tray Issue double click only on mouse up Aug 30, 2012
lib_win/tray Remove windowState hack. Aug 23, 2013
modules Cancel cloned events Aug 5, 2016
.gitignore Update gitignore Aug 30, 2012
LICENSE Relicense: MPL-2 Aug 30, 2012
README.md Create README.md Aug 5, 2016
build.py build.py: include version Sep 22, 2012
chrome.manifest Get assets in order Aug 4, 2016
icon.png Initial ctypes Jul 13, 2011
icon64.png Initial ctypes Jul 13, 2011
install.rdf Version 1.3.2 Aug 5, 2016

README.md

mintrayr

Mozilla extension: Minimize windows into the system tray (Firefox, Thunderbird, Seamonkey, Instantbird)

Developing the extension

Once you jumped through the hoops of getting a Firefox or Thunderbird set up for development, you can use a proxy file pointing to your cloned repository.

Most code is Javascript + some XUL and some CSS. But the low-level glue code had to be platform-native, meaning there is an dedicated implementation for Windows (a DLL) and one for linux (a shared object).

Please note that while the the Windows implementation uses C++, it does in fact not link the MS C/C++ runtime, so stuff like exceptions won't probably really work, and new/delete are implemented with calls to LocalAlloc. This is to avoid statically linking the massive runtime, and in fact, to avoid having two runtimes executing within the Firefox processs at the same time.

Building an XPI

You need to have python-2 installed and then execute python build.py in the root directory of your clone. This will automatically generate an unsigned package. Regarding the now-mandatory-in-Firefox add-on signing: You're on your own and have to figure that out yourself.