Comments (8)
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.
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.
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.
Sold. Can you pls create a fix?
from xplr.
@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.
@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.
There's this library we can try: https://whitequark.github.io/rust-xdg/xdg/struct.BaseDirectories.html
from xplr.
Closing this as fixed.
from xplr.
Related Issues (20)
- Process exits when trying to open any text file on editor HOT 4
- How can I use "emacsclient -t" as EDITOR for xplr? HOT 5
- How to change selection pane size? HOT 2
- Provide option to sort based on user created custom column HOT 3
- Incorrect fuzzy search behavior HOT 4
- Mapping function keys higher than F12 does not work HOT 3
- How about adding a command line to enhance the usability? HOT 2
- Hitting enter after esc takes a long time HOT 6
- closing `xplr` with `q` or closing the terminal window closes any files opened in gui HOT 4
- Deleting files should not move the cursor to the top HOT 3
- Support Binstall HOT 1
- Support Debian/Ubuntu/Snapcraft HOT 20
- Separation Releases HOT 3
- Installing in Termux HOT 3
- xplr.util.lscolor returns nil for normal files HOT 2
- Unable to see all terminal history when accesing it from :! HOT 2
- xplr.util.is_file has a typo
- Incorrect style and meta for directory with extension in name
- Documentation sidemenu always obscures main content and cannot be hidden
- xplr crashes if terminal has <= 94 columns HOT 5
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 xplr.