You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Astro Studio CLI creates (in particular, I think—astro login) a config directory by default in $HOME. While this is not an error, I think the CLI should respect an OS (or user’s) XDG base directory settings.
Why?
I think the end-user should be able to decide what goes in their $HOME, much like how they should be allowed to choose what goes in their home in real life. This is illustrated in depth here, but in short: the control should be in the hands of the end-user, not the software/tool the user is installing/using.
I realize this may be a nit, and perhaps to most it is, but this has been accepted by others, so I thought I should present this to the Astro community, in case there are others who are interested in something like this.
Goals
Currently, the directory is only used to store the session token, so perhaps for now that file in particular can be created in XDG_STATE_HOME/astro/session-token.
In the future, if more files are introduced, then they should be placed in accordance to the XDG directory spec.
Example
Here’s my default directories (again, the path these variables point to is completely up to the end-user. Astro Studio CLI should respect these variables, if they exist:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Summary
Astro Studio CLI creates (in particular, I think—
astro login
) a config directory by default in$HOME
. While this is not an error, I think the CLI should respect an OS (or user’s) XDG base directory settings.Why?
I think the end-user should be able to decide what goes in their
$HOME
, much like how they should be allowed to choose what goes in their home in real life. This is illustrated in depth here, but in short: the control should be in the hands of the end-user, not the software/tool the user is installing/using.I realize this may be a nit, and perhaps to most it is, but this has been accepted by others, so I thought I should present this to the Astro community, in case there are others who are interested in something like this.
Goals
Currently, the directory is only used to store the session token, so perhaps for now that file in particular can be created in
XDG_STATE_HOME/astro/session-token
.In the future, if more files are introduced, then they should be placed in accordance to the XDG directory spec.
Example
Here’s my default directories (again, the path these variables point to is completely up to the end-user. Astro Studio CLI should respect these variables, if they exist:
PS: Thanks for building and working on Astro! 💖
Beta Was this translation helpful? Give feedback.
All reactions