Fix space in the path for post command

This fixes #36
This commit is contained in:
Roman 2024-03-03 18:50:13 +01:00
parent fda591d59c
commit 8ddec65c30

View File

@ -92,7 +92,7 @@ def change_wallpaper(image_path, cf, monitor, txt):
command = cf.post_command.split(" ")
for index, word in enumerate(command):
if word == "$wallpaper":
command[index] = image_path
command[index] = image_path.replace(" ", "\\ ")
subprocess.Popen(f'{" ".join(command)}', shell=True).wait()
print(f'Post command {" ".join(command)} executed')