Skip to content

Commit 877d04d

Browse files
authored
fix bug preventing the wallpaper from being set for the Cosmic DE (varietywalls#793)
1 parent 106c0e0 commit 877d04d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

data/scripts/set_wallpaper

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,9 +283,8 @@ elif [ "$DE" == "awesome" ]; then
283283
# As such, the theme's wallpaper will briefly appear before being replaced with Variety's wallpaper.
284284
echo "for s in screen do require(\"gears\").wallpaper.maximized(\"$1\", s) end" | awesome-client
285285

286-
if [[ "$XDG_CURRENT_DESKTOP" == "COSMIC" ]]; then
286+
elif [[ "$XDG_CURRENT_DESKTOP" == "COSMIC" ]]; then
287287
sed -r --in-place 's,source: Path\(".+"\),source: Path("'"$3"'"),gm' ~/.config/cosmic/com.system76.CosmicBackground/v1/all
288-
fi
289288

290289
else
291290
# For simple WMs, use either feh or nitrogen

0 commit comments

Comments
 (0)