scottchiefbaker / dool

Python3 compatible fork of dstat
GNU General Public License v3.0
332 stars 64 forks source link

Install plugins under ~/.local/share/dool/plugins instead of ~/.dool/plugins #38

Open thimslugga opened 1 year ago

thimslugga commented 1 year ago
SUMMARY

Switch from local install of dool plugins from ~/.dool/plugins to ~/.local/share/dool/plugins directory. Reduces home directory pollution.

ISSUE TYPE
DSTAT VERSION

Latest

OS / ENVIRONMENT

Linux

STEPS TO REPRODUCE

Install and use dool locally.

EXPECTED RESULTS

no ~/.dool directory, plugins should get installed to ~/.local/share/dool/plugins directory.

ACTUAL RESULTS
$ ls ~/.dool/
plugins/
scottchiefbaker commented 5 days ago

I have not forgotten this... I'm still processing how best to do this without breaking backwards compatibility and adding another path to search for plug-ins. Potentially related to #80?

thimslugga commented 4 days ago

What about a check for plugins in existing ~/.dool and moving them if found to new location? It wouldn't surprise me if people have customized already and put in ~/.local/share/dool/plugins and symlinking already as there's a lot of momentum around cleaning up users home. Perhaps include a check that checks the dest location for existing already and symlink to ~/.dool.

https://wiki.archlinux.org/title/XDG_Base_Directory#Supported