Git Product home page Git Product logo

Comments (9)

soc avatar soc commented on June 12, 2024

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.

flying-sheep avatar flying-sheep commented on June 12, 2024

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.

soc avatar soc commented on June 12, 2024

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.

flying-sheep avatar flying-sheep commented on June 12, 2024

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.

soc avatar soc commented on June 12, 2024

@flying-sheep I'm closing this, as the spec has finally been updated to include XDG_BIN_HOME.

from dirs-rs.

PoignardAzur avatar PoignardAzur commented on June 12, 2024

@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.

soc avatar soc commented on June 12, 2024

Hey @PoignardAzur not sure to be honest. Hasn't maintenance of the spec been abandoned for like 15 years already?

from dirs-rs.

PoignardAzur avatar PoignardAzur commented on June 12, 2024

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.

soc avatar soc commented on June 12, 2024

Maybe I confused XDG_BIN_HOME with XDG_STATE_HOME ... 🤔

from dirs-rs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.