mirror of
https://github.com/dylanaraps/pywal.git
synced 2024-06-01 11:07:29 -04:00
Compare commits
2 commits
1a1d0bec87
...
25e7e1e813
Author | SHA1 | Date | |
---|---|---|---|
25e7e1e813 | |||
20330f031f |
|
@ -175,7 +175,7 @@ def set_win_wallpaper(img):
|
||||||
if "x86" in os.environ["PROGRAMFILES"]:
|
if "x86" in os.environ["PROGRAMFILES"]:
|
||||||
ctypes.windll.user32.SystemParametersInfoW(20, 0, img, 3)
|
ctypes.windll.user32.SystemParametersInfoW(20, 0, img, 3)
|
||||||
else:
|
else:
|
||||||
# 'W' funcitons take uniqcode strings,
|
# 'W' funcitons take Unicode strings,
|
||||||
# while 'A' functions take UTF-8 bytestrings.
|
# while 'A' functions take UTF-8 bytestrings.
|
||||||
# (Python 3 strings are Unicode by default.)
|
# (Python 3 strings are Unicode by default.)
|
||||||
ctypes.windll.user32.SystemParametersInfoA(20, 0, str.encode(img), 3)
|
ctypes.windll.user32.SystemParametersInfoA(20, 0, str.encode(img), 3)
|
||||||
|
|
Loading…
Reference in a new issue