You are not logged in.

#26 2013-11-12 03:58:58

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [solved] .config permission issues

This time ten seconds ahead of you tongue

I think they are better in ~/.zshenv.

Offline

#27 2013-11-12 04:01:40

Cryptix_00
Member
Registered: 2008-07-16
Posts: 137

Re: [solved] .config permission issues

alright, the wiki page should be altered then, i followed exactly what it said and properly messed up my configs

Offline

#28 2013-11-12 04:02:22

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: [solved] .config permission issues

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

#29 2013-11-12 04:03:18

Cryptix_00
Member
Registered: 2008-07-16
Posts: 137

Re: [solved] .config permission issues

Trilby wrote:

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

#30 2013-11-12 04:03:43

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: [solved] .config permission issues

Yup.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#31 2013-11-12 04:28:42

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [solved] .config permission issues

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

#32 2013-11-12 04:42:10

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: [solved] .config permission issues

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

#33 2013-11-12 12:17:26

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: [solved] .config permission issues

cfr wrote:

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

#34 2013-11-12 13:37:56

Cryptix_00
Member
Registered: 2008-07-16
Posts: 137

Re: [solved] .config permission issues

thanks guys

Offline

Board footer

Powered by FluxBB