mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
Fix display misbehaving as a wpsetter.
ImageMagick's display returns 1 if it is to draw on the root window. Teach awsetbg that this is not an error condition. Signed-off-by: Nikos Ntarmos <ntarmos@cs.uoi.gr> Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
4400f1234d
commit
5ad3eb8021
1 changed files with 2 additions and 1 deletions
|
@ -510,7 +510,8 @@ fi
|
|||
|
||||
|
||||
$WPSETTER `eval echo $option` "$wallpaper"
|
||||
if [ $? -ne 0 ]; then
|
||||
if [ $? -ne 0 -a "$WPSETTER" != "display" ] ||
|
||||
[ $? -ne 1 -a "$WPSETTER" = "display" ]; then
|
||||
message "Something went wrong while setting the wallpaper.
|
||||
Run '$WPSETTER "`eval echo $option` $wallpaper"' from an xterm to find out what."
|
||||
exit 1
|
||||
|
|
Loading…
Reference in a new issue