hackmdio / vscode-hackmd

The official HackMD VScode extension!
https://marketplace.visualstudio.com/items?itemName=HackMD.vscode-hackmd
MIT License
132 stars 14 forks source link

[Linux] Extension does not follow XDG spec #62

Closed zjeffer closed 1 year ago

zjeffer commented 2 years ago

According to the XDG Base Directory Specification, the folder created by this extension is in the wrong place.

When changing hackmd settings through the vscode settings UI, it created a folder in the home directory (/home/<user>/.hackmd/), which clutters the home directory with unnecessary files. The folder (with the cookies.json file) should be in $XDG_DATA_HOME, $XDG_CONFIG_HOME, or $XDG_CACHE_HOME, I think.

Yukaii commented 1 year ago

The folder is no longer created because the new extension now uses access tokens for authentication.

Close this now.