anufrievroman / waypaper

GUI wallpaper manager for Wayland and Xorg Linux systems
https://anufrievroman.gitbook.io/waypaper
GNU General Public License v3.0
277 stars 11 forks source link

Support '~' in config #44

Closed SherLock707 closed 1 month ago

SherLock707 commented 1 month ago

[Enhancement]

Can you please add support for ~ expansion in config read?

image

You can check if path string contains ~ , if so os.path.expanduser(path)

While writing back to the config you can override the ~ with actual home path.

Just trying to make if username independent when installing dots on fresh install..

anufrievroman commented 1 month ago

I didn't bother to do it because initially, the user were not supposed to mess with config file as it is updated by the program. But I see that people do it anyway :D So, I'll add the path expansion on occasion.

anufrievroman commented 1 month ago

Implemented in 721cbe7bfb8b799c134d4b1c6674e0b0ed3ae9cf