Skip to content

Hyprpaper crashes when wallpaper files are renamed #341

@ghost-in-the-zsh

Description

@ghost-in-the-zsh

I have hyprpaper configured to look at a wallpapers directory and to cycle through the files in that directory every 90 seconds. I've noticed that sometimes my wallpaper will simply be a black "image". (I don't have any such images in the directory, but even if I did and hyprpaper were working correctly, it would/should cycle to a new image 90 seconds later, which it doesn't.)

The only thing I've done prior to that apparent crash is rename files in the directory hyprpaper is using to load images from. The issue doesn't show up immediately after renaming a file. Rather, it looks like you must wait until hyprpaper comes back around to try and load the file again. (I say "it looks like", b/c I don't know what file it would've shown, had it behaved correctly, so this is an educated guess.)

For example, if hyprpaper is cycling between these files:

f1.png
f2.png
f3.png

and the following rename takes place f3.png -> f0.png, then the next time hyprpaper tries to render f3.png, it just stops working. It may be trying to load a now-non-existent file (i.e. f3.png) and crashes, instead of letting the user know something went sideways gracefully and continuing with the next file in the list.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions