mirror of
https://github.com/anufrievroman/waypaper.git
synced 2024-10-26 10:58:28 +03:00
parent
fda591d59c
commit
8ddec65c30
@ -92,7 +92,7 @@ def change_wallpaper(image_path, cf, monitor, txt):
|
|||||||
command = cf.post_command.split(" ")
|
command = cf.post_command.split(" ")
|
||||||
for index, word in enumerate(command):
|
for index, word in enumerate(command):
|
||||||
if word == "$wallpaper":
|
if word == "$wallpaper":
|
||||||
command[index] = image_path
|
command[index] = image_path.replace(" ", "\\ ")
|
||||||
subprocess.Popen(f'{" ".join(command)}', shell=True).wait()
|
subprocess.Popen(f'{" ".join(command)}', shell=True).wait()
|
||||||
print(f'Post command {" ".join(command)} executed')
|
print(f'Post command {" ".join(command)} executed')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user