dotfiles icon indicating copy to clipboard operation
dotfiles copied to clipboard

[BUG] pywalfox doesn't work on Fedora Workstation 41

Open marcinfreitag opened this issue 1 year ago • 2 comments

This bug may be related to: https://github.com/mylinuxforwork/dotfiles/issues/479

I cannot confirm this, since I don't have an Arch instance at hand.

Describe the bug Pywalfox doesn't work when installed through the installation options invoked in the Welcome App.

To Reproduce

  1. Click on the sidebar
  2. Open the Welcome App
  3. Click on the Installation Options
  4. Select pywalfox and follow the instructions
  5. Install pywalfox extension in firefox as usual (via about:addons pane)
  6. Restart firefox

Expected behavior Firefox should load the proper colour palette generated by pywal, instead it utilizes the default one.

Screenshots Error message displayed in firefox: screenshot_02012025_125848

Distribution:

  • Fedora Workstation 41, ML4W 2.9.7.3

Additional context The script provided by ML4W invokes the following commands:

sudo pip install pywalfox
sudo pywalfox install

The first one is "fine", using venv would probably be better, but I haven't tested this so far. The second one:

  1. sets the daemon executable path to: /usr/local/lib/python3.13/site-packages/pywalfox/bin/main.sh and execute permissions on daemon executable (This is fine.)
  2. copies the manifest to /root/.mozilla/native-messaging-hosts/pywalfox.json. This is not a desirable outcome.

Apparently, sudo pywalfox -g install installs the native host manifest globally, but it didn't work for me.

Solution

  1. Follow the instructions as described in To Reproduce step, i.e. install pywalfox through the ML4W app.
  2. run pywalfox install as the current regular user the manifest is copied to /home/${USER}/.mozilla/native-messaging-hosts/pywalfox.json which is the desired outcome The errors in the output are irrelevant, since the tasks have already been successfully completed by the command sudo pywalfox install in the install script provided by ML4W.
  3. Restart firefox and optionally load the palette in the pywalfox extension settings.
  4. Enjoy your theme and brag about it :)

marcinfreitag avatar Jan 02 '25 11:01 marcinfreitag

@marcinfreitag Just run the steps and the options script and everything worked fine. But had to run sudo pywalfox install to write the files with the right permissions.

So don't see an issue at the moment.

mylinuxforwork avatar Jan 02 '25 15:01 mylinuxforwork

I had the same issue when installing (completely fresh Fedora 41 install, fully updated packages, and immediate subsequent install of ML4W on bare metal on Feb 4, 2025) and was unable to remedy following recommended advice online and from the github repo for the pywal firefox add-on. I think there may be an issue.

That said, I was able to get the same plugin to run without issue on Zen, which is a firefox derivative.

Prior to that, I tried uninstalling/reinstalling firefox, including removal of all data. Also tried re-installing the options script. I wasn't able to resolve the issue for Firefox.

alxcrlsn avatar Feb 05 '25 22:02 alxcrlsn