Skip to content

Commit 0a1bd27

Browse files
committed
use XDG_CONFIG_HOME/azote as the default directory for azotebg
1 parent ce3d8e1 commit 0a1bd27

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

azote/tools.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,10 @@ def set_env(language=None):
333333
os.mkdir(common.thumb_dir)
334334

335335
# command file
336-
common.cmd_file = os.path.join(os.getenv("HOME"), ".azotebg")
336+
if os.path.isfile(os.path.join(os.getenv("HOME"), ".azotebg")):
337+
common.cmd_file = os.path.join(os.getenv("HOME"), ".azotebg")
338+
else:
339+
common.cmd_file = os.path.join(os.getenv("XDG_CONFIG_HOME"), "azote/azotebg")
337340

338341
# temporary folder
339342
common.tmp_dir = os.path.join(common.data_home, "temp")

0 commit comments

Comments
 (0)