You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Settings]language = en
folder = ~/Pictures/wallpapers
backend = hyprpaper
monitors = All
fill = Fill
sort = name
color = #ffffffsubfolders = True
number_of_columns = 3
post_command =
show_hidden = False
show_gifs_only = False
use_xdg_state = True
So I would expect that the config.ini file doesn't need to be touched by the app. I am using home-manager on Ubuntu and this file is set as immutable/readonly. When I try to change wallpaper, though, this is what happens:
>~/.local/pipx/venvs/waypaper/bin/waypaper --random
We got: en
True # <- This is just me testing that the use_xdg_state was currently set
Traceback (most recent call last):
File "~/.local/pipx/venvs/waypaper/bin/waypaper", line 8, in<module>sys.exit(run())
^^^^^
File "~/.local/pipx/venvs/waypaper/lib/python3.12/site-packages/waypaper/__main__.py", line 67, in run
cf.save()
File "~/.local/pipx/venvs/waypaper/lib/python3.12/site-packages/waypaper/config.py", line 214, in save
with open(self.config_file, "w") as configfile:
^^^^^^^^^^^^^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied: '~/.config/waypaper/config.ini'
The text was updated successfully, but these errors were encountered:
I see. Yes, it tries to overwrite the config even if you use state file. To be honest, I never used the immutable systems like that, so I'm not sure what's the expected behavior is. Currently, state file only stores information about monitors and wallpaper (according to previous discussions). But all the other settings are still stored in the config (and overwritten when changed). So, for you, the expected behavior would be that everything is stored in the state file, or just that it does not crash if permission denied? Or all the things that can be changed via GUI should be stored in the state file (which is almost all things)?
I think that using state files in general might be the better option. Especially if you are using them in the first place. otherwise we should use the config file.
I have the following configuration
So I would expect that the config.ini file doesn't need to be touched by the app. I am using home-manager on Ubuntu and this file is set as immutable/readonly. When I try to change wallpaper, though, this is what happens:
The text was updated successfully, but these errors were encountered: