Commit b29221f
committed
fix: Fix wallpaper selector showing wrong wallpaper when filename contains dots
The `cut -d. -f1` command truncated filenames at the first dot, causing
wallpapers named like "01. Catppuccin.jpg" to display as just "01" in
the rofi menu. Multiple wallpapers with the same prefix showed identical
labels, and selecting one applied the wrong file since `find -print -quit`
returned the first alphabetical match.
Changed to use full filename `$pic_name` (consistent with GIF and video
handling on lines 87 and 94). The existing sed on line 222 correctly
strips only the file extension for the find command.1 parent ca0c23c commit b29221f
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| |||
0 commit comments