projects
/
clearscm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of /opt/git/clearscm
[clearscm.git]
/
bin
/
setbg
diff --git
a/bin/setbg
b/bin/setbg
index
e3f5a46
..
39ce45b
100755
(executable)
--- a/
bin/setbg
+++ b/
bin/setbg
@@
-98,7
+98,7
@@
foreach (@imgDir) {
} # foreach
# Using gsettings
} # foreach
# Using gsettings
-my $setbg = "gsettings";
+my $setbg
= "gsettings";
my $setbgOpts = "set org.gnome.desktop.background picture-uri \"file://";
my @images;
my $setbgOpts = "set org.gnome.desktop.background picture-uri \"file://";
my @images;
@@
-133,8
+133,14
@@
while () {
my $cmd = "$setbg $setbgOpts$image\" 2> /dev/null";
my $cmd = "$setbg $setbgOpts$image\" 2> /dev/null";
- `$cmd`;
+
my @output =
`$cmd`;
+ if ($? != 0) {
+ display "ERROR Trying to set background - command used \"$cmd\"", $log;
+ display "Output:";
+ display join "\n", @output, $log;
+ } # if
+
close $log;
sleep $sleep;
close $log;
sleep $sleep;