Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

wal suddenly started asking for sudo #245

@bootzin

Description

@bootzin

I feel like after last update wal has suddenly started asking for super user permissions, is that really necessary? As I have an alias to easily change all my system's colors according to a wallpaper and as I also use this alias inside ranger to choose a new wallpaper, it is really annoying having to type my sudo pw everytime. Is that a problem with my system or was it really an intended change? And if so, can I do something so that I don't need to grant it super user permissions again? I mean, it worked just fine before

More specifically, I get the following message when running it without sudo:

Traceback (most recent call last):
File "/bin/wal", line 11, in
load_entry_point('pywal==3.0.0', 'console_scripts', 'wal')()
File "/usr/lib/python3.6/site-packages/pywal/main.py", line 194, in main
parse_args(parser)
File "/usr/lib/python3.6/site-packages/pywal/main.py", line 147, in parse_args
colors_plain = colors.get(image_file, args.l, args.backend)
File "/usr/lib/python3.6/site-packages/pywal/colors.py", line 141, in get
util.save_file_json(colors, cache_file)
File "/usr/lib/python3.6/site-packages/pywal/util.py", line 87, in save_file_json
with open(export_file, "w") as file:
PermissionError: [Errno 13] Permission denied: '/home/username/.cache/wal/schemes/_home_username_Pictures_Wallpapers_BUokHxx_png_dark_None_1.1.0.json'

pywal version

wal 3.0.0

System

Linux titan 4.16.7-1-ARCH #1 SMP PREEMPT Wed May 2 21:12:36 UTC 2018 x86_64 GNU/Linux

Steps to reproduce

wal -c -g -i ~/Pictures/Wallpapers/current.png -o 'patch-st-colors'

"patch-st-colors" is a script I made that sets defaultbg color to always be "black" (Otherwise I can't use st with transparency) and recompiles st after running wal, as simply running "cat ~/.cache/wal/sequences" didn't always work to change the colorscheme

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions