You are not logged in.
This time ten seconds ahead of you ![]()
I think they are better in ~/.zshenv.
Offline
alright, the wiki page should be altered then, i followed exactly what it said and properly messed up my configs
Offline
As a non-bspwm user I'm hesitant to change that - but that wiki page should change.
I don't know the best place for such a setting, but I do know some of the worst: that's one of them.
I set that in my ~/.xinitrc. XDG variables are for X, so xinitrc is the most sensible place for them.
EDIT: and it definitely shouldn't include the quotes. Without quotes it might just not be "best practice", with the quotes - as you have no seen - it breaks stuff.
Last edited by Trilby (2013-11-12 04:03:30)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
As a non-bspwm user I'm hesitant to change that - but that wiki page should change.
I don't know the best place for such a setting, but I do know some of the worst: that's one of them.
I set that in my ~/.xinitrc. XDG variables are for X, so xinitrc is the most sensible place for them.
so you have an export XDG_CONFIG_HOME= ... etc in your xinitrc?
Offline
Yup.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Modified the page... wasn't sure exactly where to tell users to put it, so I changed /etc/profile to ~/.profile with a note on the bottom that it can be put in any number of other places. I also changed 'export XDG_CONFIG_HOME="~/.config"' to use "$HOME/.config" instead.
Offline
Apart from anything else, nothing in etc like that should mention your user name. You don't want e.g. XDG_CONFIG_HOME or whatever set to /home/leshow/.config if you log in as another user (including root). The stuff there has to work for all users - root, you, anybody else (where anybody else may also be you). Plus if you start configuring stuff there it becomes much more difficult to diagnose problems by e.g. seeing if the issue occurs in a clean user account. If your configuration mistake is in ~/, you'll avoid the problem by creating a fresh account. If your mistake is in /etc/profile, you'll just repeat the issue. That might be especially important if your mistake screws things up in ways which make it difficult to undo mistakes or even to log in at all.
EDIT: Does that variable need to be set? Mine is empty which I think means it defaults to ~/.config anyway?
Last edited by cfr (2013-11-12 04:44:27)
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
EDIT: Does that variable need to be set? Mine is empty which I think means it defaults to ~/.config anyway?
The short answer is no. Some programs look specifically for $XDG_CONFIG_HOME. Most of them then fallback to $HOME/.config/, then to $HOME/.prognamerc or something similar.
Some programs, however, may skip the second of those options, so when XDG_CONFIG_HOME is not set, they'll create a dot file in the home directory. These should be rare, however, and authors can be petitioned to change this.
The main reason to set XDG_CONFIG_HOME is if one wants config files to be stored somewhere other than $HOME/.config.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
thanks guys
Offline