Comments (1)
@0-wiz-0 neonmodem is getting these directories at this point, using Go's os
package. Those function use the environment variables set by the user and return those values. As written in the documentation:
UserCacheDir returns the default root directory to use for user-specific cached data. Users should create their own application-specific subdirectory within this one and use that.
On Unix systems, it returns $XDG_CACHE_HOME as specified by https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html if non-empty, else $HOME/.cache. On Darwin, it returns $HOME/Library/Caches. On Windows, it returns %LocalAppData%. On Plan 9, it returns $home/lib/cache.
If the location cannot be determined (for example, $HOME is not defined), then it will return an error.
I don't believe it is a good idea for a random program to just create the directories that a user has specified as ENV, e.g. $XDG_CACHE_HOME
, hence the one thing that I found sensible was to let neonmodem crash loudly, so that the user takes care to fix his ENV.
However, having that said, I haven't read deeper into especially the XDG/Freedesktop specification to understand whether programs should in fact create these directories if they're non-existent.
If you have any info that explicitly points out that neonmodem is not behaving in a standard way free to re-open the issue. :-)
from neonmodem.
Related Issues (20)
- [Hackernews][Bug] Unable to add Hackernews in HEAD HOT 2
- [Discourse] IPFS works, Caddy does not. Why? HOT 2
- [Enhancement] Allow alternate feed sorting HOT 1
- Using a specific lemmy forum does not refilter the list of posts HOT 1
- [Lemmy] Comments aren't always showed under post
- [Lemmy] Forum filter doesn't do anything
- [Vote] Flarum support HOT 1
- Remove trailing slash from URLs on `connect` HOT 4
- Lemmy ListPosts results limited to 50 HOT 1
- Correctly handle incorrect system URLs HOT 4
- Typing "q" while replying closes the reply prompt
- 400 Bad Request: missing_totp_token HOT 3
- sixel support? HOT 3
- [Lemmy] Nested replies don't specifically mention who posted parent reply. HOT 1
- Typing 'n' character while entering filter text opens the new post dialog HOT 1
- light mode HOT 9
- Connecting new Discourse systems results in 500 Internal Server Errors HOT 1
- [Discourse] ERROR json: cannot unmarshal object into Go struct field CategoryModel.category_list.categories.subcategory_list.uploaded_logo of type string HOT 5
- Lemmy errors HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neonmodem.