Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion usr/lib/linuxmint/mintUpdate/Classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@
if CONFIGURED_KERNEL_TYPE not in SUPPORTED_KERNEL_TYPES:
CONFIGURED_KERNEL_TYPE = "-generic"

CONFIG_PATH = os.path.expanduser("~/.linuxmint/mintupdate")
CONFIG_PATH = os.path.join(os.environ.get("XDG_STATE_HOME", os.path.expanduser("~/.local/state")), "mintupdate")
# Fall back to legacy path if it exists
if os.path.isdir(os.path.expanduser("~/.linuxmint/mintupdate")):
CONFIG_PATH = os.path.expanduser("~/.linuxmint/mintupdate")

# Used as a decorator to run things in the background
def _async(func):
Expand Down