pywal icon indicating copy to clipboard operation
pywal copied to clipboard

Does not work on BSD

Open ghost opened this issue 5 years ago • 3 comments

When I try to run python -m pywal -i gas.jpg on my FreeBSD install, it almost works, but it thinks I am on tty /dev/pts/2, yet I am on /dev/pts/4 (I think)

[me@computer][~/Downloads]% python -m pywal -i gas.jpg
[I] image: Using image gas.jpg.
[I] colors: Generating a colorscheme.
[I] colors: Using wal backend.
[I] colors: Generation complete.
[I] wallpaper: Set the new wallpaper.
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/local/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/me/.local/lib/python3.7/site-packages/pywal/__main__.py", line 212, in <module>
    main()
  File "/home/me/.local/lib/python3.7/site-packages/pywal/__main__.py", line 208, in main
    parse_args(parser)
  File "/home/me/.local/lib/python3.7/site-packages/pywal/__main__.py", line 180, in parse_args
    sequences.send(colors_plain, to_send=not args.s, vte_fix=args.vte)
  File "/home/me/.local/lib/python3.7/site-packages/pywal/sequences.py", line 85, in send
    util.save_file(sequences, term)
  File "/home/me/.local/lib/python3.7/site-packages/pywal/util.py", line 83, in save_file
    with open(export_file, "w") as file:
OSError: [Errno 6] Device not configured: '/dev/pts/2'
[me@computer][~/Downloads]% tty
/dev/pts/4

I am running wal 3.3.0 on python 3.7.6

ghost avatar Jan 31 '20 01:01 ghost

Pywal will write to all /dev/pts/[0-9]* devices to change the theme in all open terminals.

dylanaraps avatar Jan 31 '20 07:01 dylanaraps

I see. That makes sense. Just tried to guess what was happening ¯_(ツ)_/¯

ghost avatar Jan 31 '20 21:01 ghost

I just migrate on FreeBSD and I had the same problem. I just add my user to the operator group and it works fine now

LomigAndTux avatar Jan 25 '22 09:01 LomigAndTux