Skip to content
This repository has been archived by the owner on Sep 12, 2022. It is now read-only.

Notification icon not working in some linux configurations #55

Closed
w0xel opened this issue Sep 18, 2016 · 4 comments
Closed

Notification icon not working in some linux configurations #55

w0xel opened this issue Sep 18, 2016 · 4 comments

Comments

@w0xel
Copy link
Contributor

w0xel commented Sep 18, 2016

notify_not_working

Node-notifier just wrapping the 'notify-send' command on linux leads to certain incompatiblities (Screenshot from elementaryOS loki).

I am already able to provide a fix: Electron native notifications had some shortcomings earlier, but fixed them in recent releases (now compatible with windows <=7 and >=8, better linux support, osx always worked). They also use native C++ libraries instead of wrapping the commands on all platforms.
I replaced electron 1.2.8 (that is in use currently) by electron 1.4.0 and replaced the notifier-send notification call with a Electron notification:

notify_working

I would gladly help and send you a pull request replacing all notification calls with Electron notifications, if you are willing to upgrade Electron. (Just test it. Harmony works great with Electron 1.3.4/1.4.0.
If you get a 'Module version mismatch. Expected x, got y.' Just do
npm rebuild --runtime=electron --target=1.3.4 --disturl=https://atom.io/download/atom-shell --abi=y
where you replace 1.3.4 with the electron version you're using and y with the abi version it got. This happens when electron-prebuilt was built with a different version of node than your system uses)

@vincelwt
Copy link
Owner

Haha I was just looking at this issue too :)

You can open a pull request, but maybe wait a few hours/days until I push my work for the plugin system, because I'm afraid there's gonna be a lot of merge conflicts (sometimes is a pain to solve).

Thanks!

@w0xel
Copy link
Contributor Author

w0xel commented Sep 18, 2016

ok :)

@vincelwt
Copy link
Owner

Alright I pushed my work, feel free to send pull requests ;)

I'll try now to make the code much cleaner for developers willing to participate, as it's still a lot messy

@vincelwt
Copy link
Owner

I updated Electron to latest 1.4.0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants