Commit e70f26efa0

e70f26efa0d9c19bff3ae6c94989a8bbfcaa399b

parent: d68427f98e

Unsigned

Wraient <wraient.911@gmail.com> · 2024-09-22 14:23 UTC

xdg not available for everyone

Layout: unified · split

curd.py +2 −1
@@ -1,3 +1,4 @@
1#!/bin/python3
1# if you are trying to read this code, god help you. 2# if you are trying to read this code, god help you.
2# this is how my implementation of the ani-cli code to get the anime works 3# this is how my implementation of the ani-cli code to get the anime works
3 4
@@ -102,7 +103,7 @@ def create_default_user_config(default_config):
102 return output_string 103 return output_string
103 104
104def load_config() -> dict: 105def load_config() -> dict:
105 command = """echo $(xdg-user-dir CONFIG)""" 106 command = """echo $HOME"""
106 107
107 result = subprocess.run(command, shell=True, capture_output=True, text=True) 108 result = subprocess.run(command, shell=True, capture_output=True, text=True)
108 output = result.stdout.strip() 109 output = result.stdout.strip()