Compare commits

...

2 commits

Author SHA1 Message Date
Gremious 1a1d0bec87
Merge 22c112569a into 236aa48e74 2023-08-03 09:02:52 -06:00
Gremious 22c112569a
Fix space in wallpaper.py 2023-08-03 12:09:18 +01:00

View file

@ -175,7 +175,7 @@ def set_win_wallpaper(img):
if "x86" in os.environ["PROGRAMFILES"]:
ctypes.windll.user32.SystemParametersInfoW(20, 0, img, 3)
else:
# 'W' funcitons take uniqcode strings,
# 'W' funcitons take uniqcode strings,
# while 'A' functions take UTF-8 bytestrings.
# (Python 3 strings are Unicode by default.)
ctypes.windll.user32.SystemParametersInfoA(20, 0, str.encode(img), 3)