We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 56a859f commit d633dafCopy full SHA for d633daf
plugins/add-bookmark-site.py
@@ -22,6 +22,7 @@
22
#
23
24
import os
25
+from pathlib import Path
26
import gi
27
28
gi.require_version('Gtk', '3.0')
@@ -32,8 +33,9 @@
32
33
UI_FILE_PATH = os.path.join(os.path.dirname(__file__), "add-bookmark-site.ui")
34
35
""" get some good config file name """
-config_dir = os.path.expandvars(
36
- "$HOME/.config/liferea/plugins/add-bookmark-site")
+config_path = "liferea/plugins/add-bookmark-site"
37
+config_dir = os.getenv('XDG_CONFIG_HOME', Path.joinpath(Path.home(), ".config"))
38
+config_dir = Path.joinpath(Path(config_dir), config_path)
39
config_fname = os.path.join(config_dir, "add-bookmark-site.ini")
40
41
0 commit comments