Skip to content

Commit

Permalink
daemonize hypr_watcher & random_wallpaper Threads #354
Browse files Browse the repository at this point in the history
  • Loading branch information
nwg-piotr committed Nov 25, 2024
1 parent 4daea45 commit 50b9163
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nwg_panel/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,7 @@ def main():
if len(common.h_taskbars_list) > 0 or len(common.h_workspaces_list) > 0:
print("his: '{}', starting hypr_watcher".format(his))
# read from Hyprland socket2 on another thread
thread = threading.Thread(target=hypr_watcher)
thread = threading.Thread(target=hypr_watcher, daemon=True)
thread.daemon = True
thread.start()

Expand Down
2 changes: 1 addition & 1 deletion nwg_panel/modules/random_wallpaper.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def apply_wallpaper(self, widget):
else:
eprint(f"Local wallpaper path {self.settings['local-path']} not found or empty")
else:
thread = threading.Thread(target=self.load_apply_wallhaven_image)
thread = threading.Thread(target=self.load_apply_wallhaven_image, daemon=True)
thread.start()

return True
Expand Down

0 comments on commit 50b9163

Please sign in to comment.