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)
- Support background tasks
- dependency issue: ratatui HOT 4
- panicked at 'assertion failed: tv_nsec >= 0 && tv_nsec < NSEC_PER_SEC as i64' HOT 1
- Optimize get current dir
- Save input history per mode HOT 3
- Improve navigation speed with selected items
- Heads up on ratatui v.next serialization change HOT 1
- Broken icons HOT 6
- style being ignored HOT 12
- Port the custom Lua functions over to the Rust backend as built-in defaults
- Port xplr.fn.builtin.try_complete_path over to Rust
- Port xplr.fn.builtin.fmt_general_selection_item over to Rust
- Port xplr.fn.builtin.fmt_general_table_row_cols_* over to Rust
- `cargo install` fails, while `cargo build` succeeds. HOT 1
- Scrolling help and selection panes HOT 1
- config.node_types.file.style.fg foreground color isn't applied to files HOT 4
- Illegal format character q HOT 3
- "Error) could not enter" ...: Not a directory (os error 20)"
- Display current mode help menu on top
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.