Please stop barebacking `$HOME` on Linux

Open
#64 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
42/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
linux

Research direction

The issue names no source file or test; start by reading the Freedesktop XDG Base Directory Specification and locating Sprites' configuration, state, and cache path handling. Done means Linux follows the requested XDG_CONFIG_HOME behavior, including the stated fallback when it is unset, without placing these directories directly under $HOME.

Written by the indexing model from the issue text.

Description

On Linux, for over 20 years, it has been bad manners for tools to drop their config/state/cache dirs into $HOME

Flyctl does not follow the XDG spec, but at least provides a FLY_CONFIG_DIR env var https://github.com/superfly/flyctl/pull/2785

Please, follow the Freedesktop XDG base directory standard: https://specifications.freedesktop.org/basedir/latest/

The simplest fix is simply use $XDG_CONFIG_HOME/sprites as the config dir. If $XDG_CONFIG_HOME doesn't exist then and the platform is linux, then default to $HOME/config.

Congrats on the launch btw, sprites is really cool.

Dominant language
TypeScript
Stars
51
Forks
4
Avg merge
23h 57m
Merged PRs (30d)
12

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from superfly/sprites-docs

All issues in superfly/sprites-docs

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.