vscode-leetcode icon indicating copy to clipboard operation
vscode-leetcode copied to clipboard

Follow XDG Base Directory Specification on Linux

Open Zweihander-Main opened this issue 2 years ago • 0 comments

🐛 Bug Report

This plugin uses ~/.lc for configuration and cache instead of using XDG compliant directories, e.g. $XDG_CONFIG_HOME and $XDG_CACHE_HOME.

Could the plugin check for these variables and thereby implement the XDG Base Directory Specification standard for Linux? Ideally the cache directory and the other config settings will be split out but even just stuffing them all into the config directory would clear the user home directory.

Reference: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html

To Reproduce

Enable Plugin. Login. ~/.lc directory created

Expected behavior

Plugin checks for XDG_CONFIG_HOME and puts settings directory into XDG_CONFIG_HOME/lc (likely ~/.config/lc).

Your Environment

  • os: Linux 6.2.8 using Arch
  • nodejs version: 19.8.1
  • vscode version: VSCodium 1.76.2
  • extension version: v0.18.1

Zweihander-Main avatar Apr 01 '23 01:04 Zweihander-Main