question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fails to fetch pywal colors on Mac OS

See original GitHub issue

I set up pywalfox according to the installation guide but Firefox’s theme colors do not change when the “Fetch Pywal colors” button is clicked.

In the browser console I got this: Error: Attempt to postMessage on disconnected port.

Any insight?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:27 (13 by maintainers)

github_iconTop GitHub Comments

2reactions
typkrftcommented, Jul 1, 2020

Any errors in the Browser console in Firefox?

stderr output from native app pywalfox: /Users/<username>/Library/Python/2.7/lib/python/site-packages/pywalfox/bin/main.sh: line 3: pywalfox: command not found

Bingo. I had looked before, but must have missed it. I was able to resolve it by opening main.sh and explicitly setting the path to the output of which pywalfox.

/Users/<username>/Library/Python/2.7/bin/pywalfox

For some reason even though when I check any terminal (iTerm2 Terminal.app vscode ) with which pywalfox it appears, main.sh does not seem to know where it’s at (maybe?). Thank you for leading me to that though and thanks for you work on this.

Edit (Guesses):

I think this has something to do with main.sh using the BASH environment. Since, 10.15 macOS has switched from BASH to ZSH. I am able to work around the issue by sourcing my .zshrc first. then running pywal daemon.

#!/usr/bin/env bash

source ~/.zshrc
pywalfox daemon

This also might be why sudo works for some people. Because it would put it in the $PATH everywhere (I think). In macOS however installing with sudo doesn’t help because its still a different shell. My guess is that this would work normally on 10.14.

1reaction
maishamscommented, Jan 17, 2021

that worked !!! thank you:)

Read more comments on GitHub >

github_iconTop Results From Across the Web

New terminals won't open with the pywal colorscheme. Why?
My cmatrix terminal will not be using the wal colorscheme. ... do a 'source .bashrc' in the mc terminal, it does apply the...
Read more >
Unable to change cursor/caret color in iTerm2 while using pywal
I am currently trying to configure my Neovim and Terminal setup in MacOS. One of the things I am doing is using Pywal...
Read more >
TANUKI on Twitter: "Tried ricing my Macbook today, thought it ...
Supernerd for the menu bar, pywal for matching terminal colours to current wallpaper and no-title-bar iTerm :D ... https://github.com/blahsd/ ...
Read more >
zsh colors get messed up when exiting some programs or ...
I'm using bspwm as my WM; The terminal is alacritty; The shell is zsh, and I have oh-my-zsh installed; I use pywal for...
Read more >
Troubleshooting — asciimatics 1.14.0 documentation
apt update apt-get install clang python-dev libjpeg-turbo-dev ... In particular, if you use xterm-color , you are using a definition of xterm that...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found