Skip to content

Move projects.ron to .local/share on linux (and potentially the equivalent on mac) #258

@Freyja-moth

Description

@Freyja-moth

What problem does this solve or what need does it fill?

According to the XDG Base Directory Specifications 1

There is a single base directory relative to which user-specific data files should be written. This directory is defined by the environment variable $XDG_DATA_HOME.

There is a single base directory relative to which user-specific non-essential (cached) data should be written. This directory is defined by the environment variable $XDG_CACHE_HOME.

The .cache directory is generally used for unimportant files that can be easily remade and users might generally expect to be able to delete all the files in it without issue (including me, who almost fell pray to this). However doing so currently will cause all previously made projects to disappear from the editor

What solution would you like?

Move the projects.ron file to .local/share.

I'm not familiar with how macos handles these things but I'd imagine that the cache folder is treated similarly there, though I don't know what their equivalent of .local/share is.

What alternative(s) have you considered?

Leave it as is. It's a minor annoyance at best, but I'd still feel better if it was changed.

Footnotes

  1. https://specifications.freedesktop.org/basedir/latest/#basics

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-FeatureMake something new possibleS-Needs-TriageThis issue needs to be labelled

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions