summaryrefslogtreecommitdiff
path: root/src/options.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/options.c
parented1195323634447d7b0256141111638a18ae4e60 (diff)
Adds an option --bg-no-bgfile that prevents the writing of a ~/.fehbg file.
Diffstat (limited to 'src/options.c')
-rw-r--r--src/options.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/options.c b/src/options.c
index b7eb544..e59adf6 100644
--- a/src/options.c
+++ b/src/options.c
@@ -390,6 +390,7 @@ static void feh_parse_option_array(int argc, char **argv, int finalrun)
{"thumb-redraw" , 1, 0, 'J'},
{"info" , 1, 0, 234},
{"force-aliasing", 0, 0, 235},
+ {"bg-no-bgfile" , 0, 0, 236},
{0, 0, 0, 0}
};
@@ -703,6 +704,9 @@ static void feh_parse_option_array(int argc, char **argv, int finalrun)
case 235:
opt.force_aliasing = 1;
break;
+ case 236:
+ opt.no_bgfile = 1;
+ break;
default:
break;
}
@@ -760,6 +764,12 @@ static void check_options(void)
eprintf("You cannot combine --loadable with --unloadable");
}
+ if (opt.no_bgfile && !opt.bgmode) {
+ weprintf("The --no-bg-file option is meaningless unless you\n"
+ "are setting a background wallpaper image.\n"
+ "It is being ignored.");
+ }
+
return;
}