GithubHelp home page GithubHelp logo

ysard / mintrayr Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nmaier/mintrayr

130.0 21.0 16.0 1.53 MB

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

Home Page: https://addons.thunderbird.net/en-US/thunderbird/addon/minimizetotray-reanimated/

License: Mozilla Public License 2.0

JavaScript 51.22% Python 11.54% CSS 4.41% Makefile 0.80% C 12.50% C++ 19.53%

mintrayr's Introduction

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.

mintrayr's People

Contributors

jeffkowalski avatar mercutiodesign avatar nmaier avatar ysard avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mintrayr's Issues

Could you issue an upgraded version for Firefox Quantum with classics addons revived?

Hello!

As you can know (or, probably, doesn't know) right now all Firefoxes up to 99.xx could use modified classic addons! The system is (partially) revived by @xiaoxiaoflood in the repository https://github.com/xiaoxiaoflood/firefox-scripts
Moreover, Classic DownThemAll and TabMixPlus are converted to this system already (and ARE working, at last at my Firefox 91.8 ESR).
Could you modify mintrayr (I guess, install script mainly), please, to make it usable in the new (but old :-) Firefox?
I've tried to change maximum possible version manually but to no avail, "it appears to be corrupt".
The URL to the working DownThemAll is here: https://github.com/xiaoxiaoflood/firefox-scripts/tree/master/extensions/DownThemAll

System Tray icon far too small, dot-like

Linux Mint 18.3, whatever KDE is current in the official repos, Thundebird 60.2.1

It doesn't let me know there's new mail unless I'm there to see the pop-up notification that happens only once just as the message arrives. Otherwise it always looks the same- like Earth from Mars.

Screenshot of system tray, is upper left icon:
untitled
https://files.catbox.moe/pxgeni.png

Fails on an individual Kubuntu 18.04 installation

Since the add-on didn't work on my notebook I installed it in a virtual machine serving as reference. Notbook and VM use the following, identical software:

  • Kubuntu 18.04 (64Bit, Plasma 5.12.6, KDE 5.44.0, Qt 5.9.5, Linux Kernel 4.15.0)
  • Thunderbird 60.2.1
  • MinimizeToTray Reanimated 1.4.4

In the VM the add-on works as expected, no problem at all.

On the notebook I can install the add-on but it does not work. It quite often doesn't even appear in the list of installed add-ons after starting TB. If it does appear, and only then, the menu option Add-ons -> MinimizeToTray Reanimated also appears. However selecting that option does not show the configuration dialog of the add-on; the menu just closes.
I then created a brand new TB profile and installed the add-on but the behavior is the same. The problem therefore doesn't seem to be directly related to a somehow defective TB profile.
Is there anything more I could examine before going the painful (and probably even useless) road of reinstalling TB?

regards, Felix

No Icon

To Reproduce
Installed the addon,no icon appears.

Expected behavior
Icon in taskbar

Environment (please complete the following information):
Linux mint 19, Cinnamon

1.4.11 re-introduces #7 and #18

Due to bbf8eb3 version 1.4.11 re-introduces the pre-1.4.6 behavior for me, i.e. Thunderbird asks me to authorize the installation of the add-on by "another program on my computer" and restart afterward every time.

I'm not sure if that revert happened on purpose and what's the reason for it.

Debian thunderbird 1:60.6.1-1

Doesn't work in windows 10

All functions doesn't work.
Windows10x64
thunderbird x32 60.0 and 60.2.1 ( ukranian lang )

Also plugin creates the directory *Program%20Files%20(x86)\Mozilla%20Thunderbird* => have to Program Files (x86)\Mozilla Thunderbird ( without %20)
capture

Doesn't work with TB 60.3.3 on Windows 7

It installs just fine, but none of its functions work.
There's no tray icon even when configuring it to always show and minimizing doesn't behave differently either.
If I set it to minimize on close, Thunderbird just exits like normally. It doesn't seem like the addon is active, even though the config window shows up.
Am I missing something?

Environment:

  • OS: Windows 7 x64
  • Thunderbird 60.3.3
  • MinimizeToTray Reanimated Version 1.4.7

No longer compatible to Thunderbird 68.2.0

Describe the bug
Thunderbird 68.2.0 says the plugin is not compatible to Thunderbird 68.2.0 and disables it in the addons.

To Reproduce
Install the plugin in Thunderbird 68.2.0.

Expected behavior
It should work as usual.

Environment (please complete the following information):

  • OS: Windows 10 64bit
  • Thunderbird Version 68.2.0
  • MinimizeToTray Reanimated Version 1.4.11

not_compatible

Tray icon color does not change for new mail [SOLVED]

Describe the bug
When you receive new mail does not change the color of the tray icon.

Expected behavior
I would like the tray icon to change color when receiving a new mail.

Desktop (please complete the following information):

  • Ubuntu 16.04/Xenial,
  • TB 60.4.0 (64-bit),
  • MinimizeToTray Reanimated 1.4.9

thundebird update to 68.0 addon is deactivated

Hello,

the update of thunderbird to version 68.0 deactivate this addon. With all older version it work's fine.

Best regards,
DMHas

To Reproduce
Steps to reproduce the behavior: update to the newest Thunderbird version

Environment (please complete the following information):

  • OS: Windows 10, Debian
  • Thunderbird Version 68.0
  • MinimizeToTray Reanimated Version1.4.11

Does not contain a valid install manifest

Hi,
when installing the extension (latest version 1.4.6) to Thunderbird 60.0 (Linux), it is not present in extension list after restart and error console shows:

mintrayr - extension path:  /.../.thunderbird/.../extensions/[email protected]  trayservice.jsm:66:5
mintrayr - extraction path:  /.../.thunderbird/.../extensions/mintray-reanimated@ysard  trayservice.jsm:72:5
1537869425819	addons.xpi-utils	WARN	updateMetadata: Add-on mintray-reanimated@ysard is invalid: Error: Directory /.../.thunderbird/.../extensions/mintray-reanimated@ysard does not contain a valid install manifest (resource://gre/modules/addons/XPIInstall.jsm:790:11) JS Stack trace: [email protected]:790:11
[email protected]:926:10
[email protected]:938:3
[email protected]:1259:21
[email protected]:1485:26
[email protected]:3363:7

Do you have any idea whats wrong?

[Fedora, TB 60.2.1] Can't install from the file, "Disabling foreign installed add-on"

Hi. I tried to install add-on from the file, after installing it asks to restart app, but after rebooting, thunderbird disables it:

addons.xpi-utils WARN Disabling foreign installed add-on mintray-reanimated@ysard in app-profile

Then a window appears again that "another program wants to change thunderbird using the following add-on":

2018-10-14 11-54-34

After allowing installation and restarting, thunderbird again disables add-on and shows this window after the next restart. It goes on forever.

AddOn doesn't work with Thunderbird v.60.3.0

Every time I close Thunderbird, the program doesn't minimize to system tray but closes completely. I've double checked the settings - everything should be correct and I've already tried different settings...

OS: Windows 10 (Build 17134)
Thunderbird version 60.3.0

Add-on not compatible with last update v68.2.1

When getting the last Thunderbird update, the add-on is not active anymore.

To Reproduce
Update Thunderbird to at least v68.2.1.
Thunderbird says "the extension is obsolete and not compatible".

Expected behavior
Closing thunderbird minimizes it to tray.

Environment (please complete the following information):

  • OS: Windows 10
  • Thunderbird Version 68.2.1
  • MinimizeToTray Reanimated Version 1.4.11

Add-on update changes "dev" version to "normal" version

Hello,
Due to issue https://github.com/ysard/mintrayr/issues/14 and issue https://github.com/ysard/mintrayr/issues/18 I'm using the dev version of this add-on, currently 1.4.11 dev.
I have configured TB to automatically update add-ons. Since some days (or even weeks) MinimizeToTray Reanimated 1.4.11 dev gets update to MinimizeToTray Reanimated 1.4.11 all the time (note the missing dev). Such an update of course reintroduces the problems that were solved by the dev version.
Can this be considered to be a bug? In my opinion a dev version should update to the next dev version and not to a none dev version. Disabling automatic updates for all add-ons is not really a nice solution.
I'm currently using TB 60.6.1 (64bit version) on Kubuntu 18.04.

regards, Felix

After installing and restarting, mintray doesn't show in the installed addons list (TB 60.2.1 64bit Linux)

Describe the bug
Upon installing mintrayr and restarting TB, the addon is not listen in the installed addons and therefore is unusable (I am not even sure if it installed but not shown or not installed properly).

Please check if your problem is related to the issue #7.
I don't think it is related to #7, maybe to #14? He mentions too that mntrayr doesn't appear on the installed addons list but we have different systems and I am unable to verify whether the addons works or not (it was reported that it didn't).

To Reproduce
Go to TB addons website download the extension and then install it in TB from "install from file"

Expected behavior
I am able to install and use mntrayr

Desktop (please complete the following information):

  • OS: Lubuntu 16.04.3
  • Thunderbird Version 60.2.1 (64-bit)

F9 Does Not Minimize Thunderbird

Pressing F9 does not minimize Thunderbird.

Also, is it possible not to display the "Minimize to tray F9" text in the file menu? I'm used to closing applications by clicking on file menu / exit - and the "exit" is usually at the very bottom. I find myself clicking on your entry now because it sits at the bottom (instead of "Exit").

Environment :
Windows 10
ThunderBird 60.5.3
MinimizeToTray Reanimated v1.4.9

Update user instructions, urgent.

Please update user instructions: For new users, or even regular casual users who don't normally install add-ons, after installing this there is no instructions on how to start and how it works. A simple update like this would prevent unnecessary frustrated users:

"FIRST STEPS: How to start MinimizeToTray Reanimated

Go to the Thunderbird Menu (top right, the 3 horizontal lines icon), click on 'Add-ons' and then 'MinimizeToTray Reanimated': This will open the preferences window, where you can choose the add-on's behavior."

Keep up the good work.

Thunderbird Add-on "Folder Account" not working properly in newer versions(68.1 and up)

Thunderbird's add-on folder account does not work correctly. When right clicking on a folder and going into properties in the General Information tab there is an option at the bottom that let's you choose from what account you would like to send the email from (From Account). When clicking on this and changing to the right one then clicking OK it seems to stick, but then when you go back into folder options it's changed right back to "Use Default."

Thunderbird not opened when clicking on a notification

Describe the bug
When having Thunderbird open and a new mail notification pops up, Thunderbird open. But when Thunderbird is trayed, clicking the notification does not bring Thunderbird up.

To Reproduce
Start thunderbird, tray it, get an email and click the notification.

Expected behavior
Thunderbird should open.

Desktop (please complete the following information):

  • OS: Ubuntu 18.10 with Gnome 3.30
  • Thunderbird Version: 60.2.1

Doesn't work for portable version (former did)

Hi there, i've always used Portable Thunderbird and don't plan to change. The extension only works on installed version as of now. I noticed that a sub-folder named "mintray-reanimated@ysard" is created in profile's extension folder for the installed version but not for the portable.

I took that folder and put it in the same place through in my portable app folder. Sadly, it seems that's not enough, still not working. I guess it's just a matter of few little things to be changed but i don't have the knowledge to do. I'm sure somebody else here does however :) Let me know, thanks!

PS: I don't think it's important since it's about a portable app but i'm on Windows 7 x64

Problems related to the context menu under windows

This is the following of what has been written here:
nmaier#188 (comment)

openPopup() is executed. But it does nothing without any error but:

  • Windows 7: no menu
  • Windows 10: badly positioned

Originally popup was called on cloneMenu instead of menu. It seems like cloneMenu was workaround for placing menu outside of Thunderbird...? But I don't understand how this works. Very weird.
I think the problem is that menu is referenced to main window. If I move main window position of menu is following. This is why menu is in weird spot. When Thunderbird is minimized then there is no main window present. So menu can't be shown. But I have no idea how to solve this issue. How to create popup "outside".
Maybe this is what cloneMenu and hidden.xul was? Menu was transferred to this hidden window to workaround this issue?

Version for FF 64+

Hello.
Tell please, can you consider the development of this extension for users of the original version of Firefox 64+?

Regards.

Right-click menu of the tray icon in Windows 10

When you right-click on an icon, the menu does not appear where it should appear, but instead appears in the lower right corner of the screen.
Although this is not a bug that affects everyday use, it is a minor issue that affects the experience. If you have time, I hope you can optimize it.

FireTray (This add-on is not compatible with your version of Thunderbird)

Describe the bug
As long as the addon is not reviewed by an official team,
it is not listed/indexed on addons.thunderbird.net.
You must download and install the .xpi manually via the site or via GitHub (https://github.com/ysard/mintrayr/releases).
But by doing this, even if new versions are pushed to addons.thunderbird.net your Thunderbird will not be updated.
So please make sure you are using the latest version of the software.

When describing the bug, please provide a clear and concise description of what the bug is.
Please check if your problem is related to the issue #7 or #18.
Do not forget that the console can provides additional information (Ctrl + Maj + J).

To Reproduce
Steps to reproduce the behavior: try to install the Extension

Expected behavior
A clear and concise description of what you expected to happen. The Extension to work

Environment (please complete the following information):

  • OS: [e.g. Windows 7/8/10, Debian Jessie/Stretch, Ubuntu 16.04/Xenial, etc.]
    Windows 10
  • Thunderbird Version [e.g. 60.0, 60.2.1, 63, etc.]
    68.2.1 (32-bit)
  • MinimizeToTray Reanimated Version [e.g. 1.4.6, 1.4.7, etc.]
    mintrayr-1.4.11

Can this Extension be updated to work with Thunderbird 68+ please

Doesn't work on Manjaro Linux

So I have Thunderbird 60.0 installed, but I can't find the add-on on AMO, which is why I downloaded the XPI file manually and imported it into Thunderbird.

While the installation seems to work fine, there is neither a tray icon afterwards, nor a configuration option. The add-on seems to be loading according to this output:

console.log: "mintrayr - extension path: " "/home/philipp/.thunderbird/rj9xdcm6.default/extensions/[email protected]"
console.log: "mintrayr - extraction path: " "/home/philipp/.thunderbird/rj9xdcm6.default/extensions/mintray-reanimated@ysard"

Any idea what might be wrong here?

EDIT: Also tried building the add-on myself (including the native lib) but that didn't help as well.

Windows 7 - Tray Context Menu

Hello,

First of all thank you for reviving this extension.
The issue I have on Windows 7 is the tray context menu doesn't work IF TB is already minimized. It works correctly if it's not.

I saw the issue #3 was set to resolved but I don't know if you resolved the "intended behavior" as well or not.

Multiple icons appearing in tray for multiple windows

When Thunderbird opens multiple windows (like when writing a new email), multiple icons also appear in the system tray. Furthermore, if the other window is "Write a new email" (perhaps in other cases too), there additional issues:

  • If the window is minimized, its tray icon does not open the context menu
  • If the window is visible and you select the option "Restore" from the context menu of its tray icon, the window disappears (including its taskbar icon), but the tray icon remains. Selecting "Restore" again brings the window back.

I believe that the correct behavior would be to display one icon per Thunderbird process. Restore option should only be visible when the window is minimized to tray and only apply to the main window of Thunderbird. Other windows should exist as before and not be affected by the tray icon.

Environment (please complete the following information):

  • OS: Windows 10
  • Thunderbird Version: 60.5.0
  • MinimizeToTray Reanimated Version: 1.4.9

Open Message In New Window Can Never Close

I think the expected behavior is minimizing to tray for the main Thunderbird application only, I don't think it's supposed to apply to messages opened in a new window.

As it is now, there's a bug where messages in windows can never close and are minimized to tray because of the add-on.

Hide Thunderbird window by clicking on tray icon

Is it possible to add functionality from $SUBJECT?

I was using FireTray addon until it was made incompatible by tb v60+ and my usual use case was to click the tray icon to restore tb window, quick check if some interesting message appeared, and if not, click again to hide the window. Without this functionality, I have to either hit F9 or move the mouse and close the tb window.

Anyways great plugin, your work is really appreciated!

Upgrade to Python 3

Python 2 is marked as deprecated and will be unmaintained next year (2020)

pip help -V
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.

It does not work with Linux

I use Opensuse Linux Leap 15.0 with KDE and Thunderbird 60.2.1 but if I click the close button it does not minimize

Use the icon that thunderbird uses

Thunderbird's executable contains an embedded icon, but it seems the one shown in the title bar and taskbar is loaded from chrome\icons\default\ (the main window in particular uses messengerWindow.ico). However, mintrayr seems to just use the embedded icon. This causes a visual mismatch if the icon on disk is customized.

I don't know if that's the cleanest way to do it. There are theming addons that supposedly allow customizing/rebranding the UI. Do you think there's an API to get the icon that's being used?

Unpacking fails when there is a space in the path

SeppiW: nmaier#188 (comment)

your updated Addon is not working for me. Thunderbirds console shows me the following
NS_ERROR_FILE_NOT_FOUND: Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIZipReader.open] - trayservice.jsm:75

I thing this happens, because i have a space in my user folder.

for example:

C:\Users\John Doe\AppData\Roaming\Thunderbird

I think, this causes the error.

It would be gread, if you could fix it in your next release.

Thanks

No additional/different tray icon for new messages

Describe the bug
I'm using 1.4.6 with TB 60.3.0 (64Bit) and Manjaro/KDE Plasmashell. I get the tray icon (although in low resolution) but it doesn't change for new mail. Also there is no addition second tray icon (as indicated in one of the comments at Mozilla).

Expected behavior
I would love to get back the permanent notification of new mail as a tray icon.

Desktop (please complete the following information):

  • OS: Manjaro Linux, KDE Plasmashell 5.14.3
  • Thunderbird Version 60.3.0 64Bit

How to install?

Hello,

How can I install this? I dragged the ".xpi" to "C:\Program Files (x86)\Mozilla Thunderbird\extensions " and restarted Thunderbird, it doesn't minimize if i click on - nor if i tab out, am i doing something wrong? ( also i think the XPI is being deleted after while)

I got windows 7, and latest updated version of thunderbird

Thanks.

Add-on no longer compatible with version 68.2.0

I had an update of thunderbird today to 68.2.0 and it killed the compatibility with the add-on.

To Reproduce
Steps to reproduce the behavior:

Expected behavior
It should minimize to tray when minimized

**Environment

  • OS: Windows 10
  • Thunderbird Version 68.2.0
  • MinimizeToTray Reanimated Version 1.4.11

Key Shortcut

Is it possible to add the possibility to define a key shortcut (like WIN-y) for maximizing and closing to tray?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.