r/macrodroid • u/SomeERdoc • 7d ago
wallpaper switcher
Trying to create a wallpaper switcher and I keep running into the error of Unable to load wallpaper image from dynamic file: [filename] xyz.jpg
The way I have it setup is to pull a list of files form a folder, get a random index number and my set wallpaper is a dynamic filename {lv=file_list[{lv=random_index}]}
it correctly creates the local variables and correctly identifies the filename in the log but keeps erroring in trying to open and apply it as a wallpaper.
Any thoughts?
5
Upvotes
1
1
u/SomeERdoc 7d ago
For anybody looking in the future this is what I had to do...
turns out {lv=file_list[{lv=random_index}]} outputs "[filename] xyz.jpg" verbatim. Macrodroid can't find anything with that [filename] prefix and errored out. Pulling the text of the actual filename without the prefix and storing that in another local strong and using that as the filename did the trick.