diff options
author | fluxgen <fluxgen> | 2005-11-13 21:30:45 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2005-11-13 21:30:45 (GMT) |
commit | 7768406cbd290c4eda40e194fc24e3dfbf7f8b9a (patch) | |
tree | 678858390e07b1c89f42b584b3abe11abfbca378 /util | |
parent | bf7902dae8c43ad4cb62a1b2791eb706612c8e28 (diff) | |
download | fluxbox_lack-7768406cbd290c4eda40e194fc24e3dfbf7f8b9a.zip fluxbox_lack-7768406cbd290c4eda40e194fc24e3dfbf7f8b9a.tar.bz2 |
create .fluxbox directory and lastwallpaper file if they dont exist
Diffstat (limited to 'util')
-rw-r--r-- | util/fbsetbg | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/util/fbsetbg b/util/fbsetbg index eaa1f9d..8f77f52 100644 --- a/util/fbsetbg +++ b/util/fbsetbg | |||
@@ -199,6 +199,11 @@ if [ $# -eq 0 ]; then | |||
199 | exit 1 | 199 | exit 1 |
200 | fi | 200 | fi |
201 | 201 | ||
202 | # create directory and last wallpaper file | ||
203 | if [ ! -d ~/.fluxbox ]; then | ||
204 | mkdir ~/.fluxbox | ||
205 | touch ${lastwallpaper} | ||
206 | fi | ||
202 | 207 | ||
203 | unset debug setterfromcommandline | 208 | unset debug setterfromcommandline |
204 | # Parse command-line options | 209 | # Parse command-line options |