summaryrefslogtreecommitdiff
path: root/src/wallpaper.c
diff options
context:
space:
mode:
authorFelix Crux <crux@google.com>2011-11-03 17:21:55 -0400
committerFelix Crux <crux@google.com>2011-11-03 17:21:55 -0400
commit476f50ab454e6b8043149fc34313fcc771c7b555 (patch)
tree0d23bd63fc293ef590a29e4777a72f31e94d76c3 /src/wallpaper.c
parented1195323634447d7b0256141111638a18ae4e60 (diff)
Adds an option --bg-no-bgfile that prevents the writing of a ~/.fehbg file.
Diffstat (limited to 'src/wallpaper.c')
-rw-r--r--src/wallpaper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallpaper.c b/src/wallpaper.c
index 90b59e6..773b87e 100644
--- a/src/wallpaper.c
+++ b/src/wallpaper.c
@@ -395,7 +395,7 @@ void feh_wm_set_bg(char *fil, Imlib_Image im, int centered, int scaled,
fehbg = estrjoin(" ", "feh --bg-tile", filbuf, NULL);
}
- if (fehbg) {
+ if (fehbg && !opt.no_bgfile) {
home = getenv("HOME");
if (home) {
FILE *fp;