fix: absolute config path not resolving

+ skip through empty directories in folder browser
+ handle timestamp table error in migration
This commit is contained in:
mungai-njoroge
2024-04-01 11:02:27 +03:00
parent 95a8e9b215
commit 2f6e705c75
9 changed files with 64 additions and 35 deletions
+4 -1
View File
@@ -1,7 +1,7 @@
import os
def get_xdg_config_dir():
def get_xdg_config_dir() -> str:
"""
Returns the XDG_CONFIG_HOME environment variable if it exists, otherwise
returns the default config directory. If none of those exist, returns the
@@ -19,3 +19,6 @@ def get_xdg_config_dir():
return alt_dir
except TypeError:
return os.path.expanduser("~")
# Fallback to current directory
return os.path.abspath(".")