Comments (9)
Hi Philipp!
I added what I'd say is pretty much an established pattern in the wild, there wasn't much thought put into it.
Although your question made me think about whether the whole ".local/share" thing wasn't a good idea from the start (and XDG_BIN_HOME
is now further perpetuating it), and whether it would have been better to have something like XDG_LOCAL_HOME
pointing to ".local" ... (I guess the XDG spec is not that great in various ways, but it's way to late to change existing things.)
Anyway: I planned on forking the whole spec into a maintained version for a while now; with better documentation that also covers best practices on macOS and Windows (unfinished website), but haven't managed the motivation to finally do it.
(Especially in the light of flatpak/flatpak.github.io#191 (comment).)
from dirs-rs.
I guess the XDG spec is not that great in various ways, but it's way to late to change existing things.
vastly better than nothing though
Anyway: I planned on forking the whole spec into a maintained version for a while now; with better documentation that also covers best practices on macOS and Windows
Sounds nice, and much better than puzzling together this stuff on one’s own. But can you clarify what you mean with “I added what I'd say is pretty much an established pattern in the wild”?
Did you simply add a variable that sounds like it makes sense or are people actually using it?
from dirs-rs.
It seems quite a lof of people use ".local./bin" for applications, and some distributions have added it to $PATH
. The decision to support the env variable $XDG_BIN_HOME
was made based on https://lists.freedesktop.org/archives/xdg/2017-August/013943.html.
(There is also a proposal (mail, mail) for $XDG_STATE_HOME
, but I haven't investigated this any further.)
from dirs-rs.
Yeah, I think supporting .local/bin makes a lot of sense, since it is in $PATH by default for a few linux distributions and a few programs install into there.
I personally wouldn’t start relying on a suggested standard addition from 2 years ago that since has lost steam and is supported by nobody else …
from dirs-rs.
@flying-sheep I'm closing this, as the spec has finally been updated to include XDG_BIN_HOME
.
from dirs-rs.
@soc Hey, I'm currently writing a report on the whole "cargo doesn't do XDG" situation.
Do you have a link to a document stating that XDG_BIN_HOME is now standard? Neither the archilinux wiki page nor the freedesktop page mention it.
from dirs-rs.
Hey @PoignardAzur not sure to be honest. Hasn't maintenance of the spec been abandoned for like 15 years already?
from dirs-rs.
So what did you mean by this?
I'm closing this, as the spec has finally been updated to include XDG_BIN_HOME.
from dirs-rs.
Maybe I confused XDG_BIN_HOME
with XDG_STATE_HOME
...
from dirs-rs.
Related Issues (20)
- New major release? HOT 3
- Fail to build on MacOS HOT 4
- does not work with rustc 1.13 as documented HOT 3
- template_dir() for MacOS HOT 2
- sudo and $HOME HOT 19
- Mac dirs don't use correct APIs to look up names HOT 13
- gcc error while testing
- Remove cfg-if HOT 2
- Windows: Add fallback for nanoserver Windows containers HOT 2
- MacOS $XDG_* HOT 1
- Add support for `XDG_STATE_HOME` HOT 1
- Windows font_dir HOT 6
- Thoughts on testing `dirs::config_dir()` on Windows? HOT 1
- Incorrect `config_dir` on Windows 10 HOT 3
- Systemd Service Directories HOT 2
- Add better descriptions as to what causes None to be returned. HOT 9
- Prefer $HOME (and XDG environment) even on Windows HOT 10
- Better Integration for Testing HOT 3
- use XDG_STATE_HOME as data_local_dir 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 dirs-rs.