Frewacom / pywalfox

Dynamic theming of Firefox (and Thunderbird) using your Pywal colors
https://addons.mozilla.org/en-US/firefox/addon/pywalfox/
Mozilla Public License 2.0
583 stars 12 forks source link

Native messaging application is outdated #54

Closed billbrod closed 3 years ago

billbrod commented 3 years ago

I just installed pywalfox on a clean install of Firefox and whenever I start up firefox, I get the following error screen:

Screenshot from 2020-12-09 16-54-28

However, pywalfox --version on the command line (which I think is the native messaging application, right?) gives v2.7.1, the newest version. Do you know what's going on? This on Ubuntu 18.04, Firefox 83.0

And opening up Pywalfox settings, it is unable to fetch the theme colors (though it can switch between light and dark mode).

Frewacom commented 3 years ago

Did you run pywalfox install? If you did, the Browser console (Tools > Web developer > Browser console) should hopefully show why it is not working as expected. The Troubleshooting guide has some other things you may try if you haven't already.

billbrod commented 3 years ago

I did. Here's a screenshot of the Browser console:

Screenshot from 2020-12-09 17-11-24

It's not obvious to me from the console what's going on. I tried following the steps in the Troubleshooting guide and none of them helped.

Running various pywalfox commands from the command line don't output anything (even with --verbose -p flags) and don't seem to change anything in the browser.

Frewacom commented 3 years ago

Are there any other messages/errors in the Browser console?

... and don't seem to change anything in the browser.

This is expected since Firefox must start it by itself for the communication to work.

Running various pywalfox commands from the command line don't output anything (even with --verbose -p flags)

Does pywalfox start --verbose -p not print anything either?

What does the Debugging section of the Pywalfox settings page say for you? If everything is setup correctly it should look something like this: image

billbrod commented 3 years ago

pywalfox start --verbose -p prints out the following (all of this gets printed when I run that, and then doesn't change, even when swapping between dark and light theme):

Screenshot from 2020-12-09 17-48-51

What does the Debugging section of the Pywalfox settings page say for you?

Mine looks like that except it says version not set instead of version 2.7

Here's a photo of the complete browser console as of right this moment (The stuff included before was shortly after starting Firefox, when the only thing that I had done was receive the tab telling my pywalfox wasn't working)

Screenshot from 2020-12-09 17-51-07

I'm not sure if those errors are coming from pywalfox -- when I click on the dropdown arrow, it tells me it's coming from an extension, but just gives me an alphanumeric string to identify it.

Frewacom commented 3 years ago

Weird. Everything seems fine as far as I can tell and none of the messages in the Browser console looks related to Pywalfox. I’ll look into it tomorrow, but for now I am off to bed.

billbrod commented 3 years ago

Alright, thanks!

Frewacom commented 3 years ago

Sorry for the late reply. I'm still not quite sure why it is not working for you. If the native application fails to start or crashes during runtime the cause should be displayed in the Browser console. I suppose you could take a look at the debugging console for Pywalfox by navigating to about:debugging and then clicking on Inspect. You can then reload the addon via the console by typing browser.runtime.reload() and get a completely fresh log.

If no errors or suspicious messages appear even after reloading, try fetching the colors from the Pywalfox settings page and check the console again.

billbrod commented 3 years ago

Alright, now we've got some error messages!

Screenshot from 2020-12-14 21-39-59

The "Could not establish connection" message repeats over and over.

Does this help narrow it down?

Frewacom commented 3 years ago

Sadly, it seems like the errors are from some other extension.

billbrod commented 3 years ago

Ah. Well, thanks for your help. If I figure it out, I'll come back and update this, but otherwise, I think we can close the issue?

Frewacom commented 3 years ago

I suppose we can close it for now. Sorry for not being of more help. I have tried to reproduce the issue on my computer but to no avail, nor do I see anything in the code that would cause this. Most likely it is something with your setup, but the lack of errors makes it really hard to debug. Native messaging has always been a bit tricky to setup because of all the different factors that affect it.

The Mozilla docs are pretty decent and I would suggest to follow the guide there and try to set it up manually.

I hope you can get it resolved!