From 476f50ab454e6b8043149fc34313fcc771c7b555 Mon Sep 17 00:00:00 2001 From: Felix Crux Date: Thu, 3 Nov 2011 17:21:55 -0400 Subject: Adds an option --bg-no-bgfile that prevents the writing of a ~/.fehbg file. --- src/wallpaper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/wallpaper.c') 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; -- cgit v1.2.3