summaryrefslogtreecommitdiff
path: root/pywal/util.py
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2017-07-09 23:39:35 +1000
committerDylan Araps <dylan.araps@gmail.com>2017-07-09 23:39:35 +1000
commit1d63b05e408d9f63e0147cdd9b1988ef63100eb9 (patch)
tree6c4faa8feda838f8fd7769608b815b0ef76a6a36 /pywal/util.py
parentdbea2814836e03fac6cf5a314d375f30cb7a12e8 (diff)
export: Add wallpaper to export files,
Diffstat (limited to 'pywal/util.py')
-rw-r--r--pywal/util.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/pywal/util.py b/pywal/util.py
index 2796d8e..6c5b420 100644
--- a/pywal/util.py
+++ b/pywal/util.py
@@ -54,6 +54,11 @@ def read_file_json(input_file):
"""Read data from a json file."""
with open(input_file) as json_file:
data = json.load(json_file)
+
+ # If wallpaper is unset, set it to "None"
+ if "wallpaper" not in data:
+ data["wallpaper"] = "None"
+
return data