mirror of
https://github.com/anufrievroman/waypaper.git
synced 2024-10-05 15:18:41 +03:00
Fixing the path issue
This commit is contained in:
parent
9b3d09f474
commit
cef8f643be
@ -92,7 +92,7 @@ def change_wallpaper(image_path, cf, monitor, txt):
|
||||
|
||||
# Run a post command:
|
||||
if cf.post_command:
|
||||
modified_image_path = image_path.replace(" ", "\\ ")
|
||||
modified_image_path = str(image_path).replace(" ", "\\ ")
|
||||
post_command = cf.post_command.replace("$wallpaper", modified_image_path)
|
||||
subprocess.Popen(post_command, shell=True)
|
||||
print(f'Post command {post_command} executed')
|
||||
|
Loading…
Reference in New Issue
Block a user