Commit 3120a848 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

Use --no-fehbg in .fehbg commandline

This ensures that X11 layout or other changes do not affect the .fehbg
contents, which are meant to only be updated when a --bg-option is used
manually.

Closes #482
parent e57b7def
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1075,6 +1075,12 @@ So to have your background restored every time you start X, you can add
.Qq ~/.fehbg &
to your X startup script
.Pq such as Pa ~/.xinitrc .
Note that the commandline written to
.Pa ~/.fehbg
always includes the
.Cm --no-fehbg
option to ensure that it is not inadvertently changed by differences in
X11 screen layout or similar.
.
.Pp
.
+1 −1
Original line number Diff line number Diff line
@@ -463,7 +463,7 @@ void feh_wm_set_bg(char *fil, Imlib_Image im, int centered, int scaled,
				} else {
					fputs("#!/bin/sh\n", fp);
					fputs(cmdargv[0], fp);
					fputs(" --bg-", fp);
					fputs(" --no-fehbg --bg-", fp);
					if (centered)
						fputs("center", fp);
					else if (scaled)