Crashing after wallpapers folder is moved to another path
Logs then I run it in terminal:
(org.gabmus.hydrapaper:2): Gtk-CRITICAL **: 23:02:33.791: gtk_widget_set_parent: assertion '_gtk_widget_get_parent (widget) == NULL' failed
Traceback (most recent call last):
File "/app/lib/python3.9/site-packages/hydrapaper/__main__.py", line 221, in do_command_line
self.do_activate()
File "/app/lib/python3.9/site-packages/hydrapaper/__main__.py", line 153, in do_activate
self.window = HydraPaperAppWindow()
File "/app/lib/python3.9/site-packages/hydrapaper/app_window.py", line 36, in __init__
self.headerbar = HydraPaperHeaderbar(
File "/app/lib/python3.9/site-packages/hydrapaper/headerbar.py", line 38, in __init__
self.folders_view = HydraPaperWallpapersFoldersView(window)
File "/app/lib/python3.9/site-packages/hydrapaper/wallpapers_folders_view.py", line 24, in __init__
self.folder_store = FolderStore()
File "/app/lib/python3.9/site-packages/hydrapaper/folder_store.py", line 35, in __init__
self.populate()
File "/app/lib/python3.9/site-packages/hydrapaper/folder_store.py", line 40, in populate
obj = FolderObj(folder['path'], folder['active'])
File "/app/lib/python3.9/site-packages/hydrapaper/folder_store.py", line 13, in __init__
assert(path.is_dir())
AssertionError
It could be solved by hydrapaper detecting that the path does not exist to the folder and it would just remove the folder from the list.
Edited by ProfMad