Giter VIP home page Giter VIP logo

Comments (8)

noahmayr avatar noahmayr commented on June 10, 2024 1

I'll try to look into this in the next couple of days. I actually raised a similar issue for rusmux (rust based tmuxinator alternative) since their config files are stored at ~/Library/Application\ Support/org.Meir-Kriheli-\<[email protected]\>.rusmux/ on MacOS even with XDG_CONFIG_HOME set.

Ideally we can find a library like dirs that actually honors the users config.

from xplr.

sayanarijit avatar sayanarijit commented on June 10, 2024

This would be a huge breaking change.
As far as my preference goes, ~/. config is the way to go for all CLI/TUI based tools, both on linux and bsd, including mac.
Could you pls confirm the OS you're using so that I can dig deeper into the issue?

from xplr.

SolitudeSF avatar SolitudeSF commented on June 10, 2024

linux. it would only be breaking for people who define XDG_CONFIG_HOME yet for some reason arent annoyed to hell when a program ignores it.

from xplr.

sayanarijit avatar sayanarijit commented on June 10, 2024

Sold. Can you pls create a fix?

from xplr.

sayanarijit avatar sayanarijit commented on June 10, 2024

@noahmayr said:


From what I understand this will break on MacOS. The dirs crate will give you MacOS specific paths like ~/Library/Application Support/xplr. Even though I'm explicitly setting $XDG_CONFIG_HOME, the maintainers of the dirs and directories crates are actively refusing to honor an environment variable intentionally set by MacOS users due to what sounds like "Apple knows best and it's your own fault for choosing a such a locked down system". Meanwhile 99% of CLI programs use ~/.config/* on MacOS or at least respect the $XDG_CONFIG_HOME environment variable.

@sayanarijit can we please hold back on releasing this until previous default behavior has been restored? This will be especially painful for those wanting to sync their dotfiles.


from xplr.

sayanarijit avatar sayanarijit commented on June 10, 2024

@noahmayr thanks for raising the concern.

I currently don't have access to a mac, so can't dig into it right now. But yes, I'm not releasing a new version without testing it on a mac.

from xplr.

sayanarijit avatar sayanarijit commented on June 10, 2024

There's this library we can try: https://whitequark.github.io/rust-xdg/xdg/struct.BaseDirectories.html

from xplr.

sayanarijit avatar sayanarijit commented on June 10, 2024

Closing this as fixed.

from xplr.

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.