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 month ago • 1 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