Skip to content

Commit

Permalink
Merge pull request #76 from zevlee/feat/use-platformdirs
Browse files Browse the repository at this point in the history
feat: Switch directory handling to the platformdirs package
  • Loading branch information
zevlee authored Oct 11, 2024
2 parents 3654deb + e1fe9c5 commit e5b0dca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 2 additions & 4 deletions passphraser/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from platform import system
from json import loads, dumps
from gi.repository import GLib
from platformdirs import user_config_dir

# Application version
__version__ = "1.0.3"
Expand All @@ -12,10 +13,7 @@
# Application directory
APPDIR = dirname(dirname(__file__))
# Config directory
if system() == "Darwin":
CONF = join(expanduser("~/Library/Application Support"), ID)
else:
CONF = join(GLib.get_user_config_dir(), APPNAME)
CONF = user_config_dir(APPNAME)
# List of possible symbols to add to password
SYMBOLS = [
"~", "`", "!", "@", "#", "$",
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
platformdirs==4.3.6

0 comments on commit e5b0dca

Please sign in to comment.