indicator-sysmonitor icon indicating copy to clipboard operation
indicator-sysmonitor copied to clipboard

JSON file location

Open patwork opened this issue 9 years ago • 1 comments

Hi,

This is more like a suggestion rather than an issue, but can indicator store its JSON with settings in different directory than $HOME? Preferably $HOME/.config or $HOME/.cache

And while we are on this, why are those paths different?

./sensors.py:52: SETTINGS_FILE = os.getenv("HOME") + '/.indicator-sysmonitor.json'

./preferences.py:222: SETTINGS_FILE = os.getenv("HOME") + '/.cache/indicator-sysmonitor/preferences.json'

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/33278858-json-file-location?utm_campaign=plugin&utm_content=tracker%2F1443743&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F1443743&utm_medium=issues&utm_source=github).

patwork avatar Apr 24 '16 12:04 patwork

They are recording different things. Yes you are correct, the sensors path should be the same as preferences. Can you throw a pull request and I'll merge?

fossfreedom avatar Apr 24 '16 17:04 fossfreedom