Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warp doesn't respect $XDG_CONFIG_HOME #814

Open
askoufis opened this issue Mar 17, 2022 · 7 comments
Open

Warp doesn't respect $XDG_CONFIG_HOME #814

askoufis opened this issue Mar 17, 2022 · 7 comments
Labels
Feature requests Feature Requests

Comments

@askoufis
Copy link

Describe the solution you'd like?

Warp should ideally respect the `XDG_CONFIG_HOME` environment variable, as specified [here](https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html).

Is your feature request related to a problem? Please describe.

I (and I assume lots of other people) prefer to store config somewhere other than my home directory, for example `~/.config`. As of version `v0.2022.03.14.08.49.stable_00`, keybindings are now stored in `~/.warp/keybindings.yaml`. If a user has configured `XDG_CONFIG_HOME`, this file should be stored in `warp/keybindings.yaml` within that folder.

Additional context

No response

@sebdanielsson
Copy link

Yes please make this happen. I don't want my home dir cluttered with app config.

For example custom themes should be stored at:
~/.config/warp/themes/themename.yaml

@mrolli
Copy link

mrolli commented Nov 29, 2022

This is a must have for me. I mean, this is a no-brainer to implement, but a showstopper for me.

@toubul
Copy link

toubul commented Dec 7, 2022

Wow same, I enjoy warp, but it's hard to use applications that don't respect XDG specs in 2022

@mrolli
Copy link

mrolli commented Dec 8, 2022

Wow same, I enjoy warp, but it's hard to use applications that don't respect XDG specs in 2022

And especially if you intend to land on Linux, where respecting XDG is a common thing nowadays. Even on macOS, a lot of apps stopped polluting $HOME and are respecting XDG, kitty, alacritty, ... just to name some other popular Terminal alternatives.

Actually one might even argue, that using $HOME on macOS is the badest choice. Either honour XDG or use the macOS default, which would be ~/Library/Application Support/$APP/.

But as I said, it's so easy to implement:

config_home="${XDG_CONFIG_HOME:-$HOME}/warp"

Done, backwards compatible.
And the same for the other $XDG_* environment variables.

I can't understand why this ticket is lingering around that long already.

@warpdotdev-devx warpdotdev-devx bot added the Feature requests Feature Requests label Jan 9, 2023
@MurtadhaInit
Copy link

I imagine this is not too hard to implement. Just add a condition to search for the $XDG_CONFIG_HOME environment variable, and if it's defined, use it. Otherwise, place the config directory in $HOME like it's currently doing. This is what almost every tool (and terminal) are using to place their config files anyways.

I'd really love for this to be implemented.

@pauliesnug
Copy link

bumping

@aaronmallen
Copy link

@warpdotdev-devx how is this issue 3 years old!?!?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature requests Feature Requests
Projects
None yet
Development

No branches or pull requests

7 participants