Skip to content

Commit

Permalink
add default save path
Browse files Browse the repository at this point in the history
  • Loading branch information
nwg-piotr committed Nov 1, 2024
1 parent 611e8f8 commit e26284e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions nwg_panel/modules/random_wallpaper.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,17 @@ def on_leave_notify_event(widget, event):
class RandomWallpaper(Gtk.Button):
def __init__(self, settings, voc, icons_path=""):
self.image_info = {}

defaults = {
"source": "wallhaven",
"source": "wallhaven.cc",
"tags": ["nature"],
"ratios": "16x9,16x10",
"atleast": "1920x1080",
"apikey": '',
"save-path": "",
"save-path": os.getenv("HOME"),
"local-path": "",
"icon-size": 16,
"interval": 0,
"refresh-on-startup": True,
"refresh-on-startup": True
}
for key in defaults:
if key not in settings:
Expand Down

0 comments on commit e26284e

Please sign in to comment.