linuxmint / mintupdate

The Linux Mint Update Manager
309 stars 152 forks source link

Support for XDG base directory structure #766

Closed alexcoder04 closed 1 year ago

alexcoder04 commented 1 year ago

As I already mentioned in #752, mintupdate generates the updates.json file to ~/.linuxmint. It a re-generateable file and can therefore be stored in ~/.cache

As far as I'm concerned, the location for mintupdates's json file is defined once in Classes.py where I changed it to be aware of $XDG_CACHE_HOME.

I'm sorry if I did something wrong, this is my first contribution to Linux Mint.

mtwebster commented 1 year ago

Hi, this is not a disposable file. It's used to keep track of recent updates, in order to notify the user when certain conditions are met regarding time since the last update and other things. It is also rewritten as needed (not just appended to), so it's not likely to grow unchecked.

BeatLink commented 10 months ago

Can this be ammended to use XDG_CONFIG_HOME in its place?

alexcoder04 commented 10 months ago

Can this be ammended to use XDG_CONFIG_HOME in its place?

I would rather say XDG_DATA_HOME, but maybe I'm missing something

https://github.com/linuxmint/mintupdate/issues/752