This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Site-wide config

Tags: None
(comma "," separated)
kjetilk
Registered Member
Posts
12
Karma
0

Site-wide config

Mon Aug 05, 2019 5:43 pm
Hi!

I have created a /site/ directory on my system to share config between various machines. I use it to make sure all my boxes have some stuff from bashrc, environment variables, emacs config, git config etc in common. Even though I only have a desktop and a laptop that has a head, it would be nice to use the same thing for KDE stuff. I have a small konsole colorscheme that I'd created that should be on my machines, and then perhaps the themes that I got, they should behave the same.

Is there an easy way to do this with KDE/Plasma?

Could it be done by setting XDG_DATA_DIRS=/site/share:$XDG_DATA_DIRS for example? Or XDG_CONFIG_DIRS or something like that?
airdrik
Registered Member
Posts
1854
Karma
5
OS

Re: Site-wide config

Tue Aug 06, 2019 6:33 pm
KDE-based apps and desktop adhere to the Freedesktop Standard which defines the use of those XDG_DATA_DIRS and XDG_CONFIG_DIRS as well as corresponding XDG_*_HOME variables for such configurations.

So if I understand correctly, you'd want to update both the *_DIRS variables to include your /site/share directory as well as the *_HOME variables to indicate that it should write to the /site/share directory.

(alternatively, using defaults for those variables, you could make ~/.config and ~/.local links to corresponding directories in /site/share)


airdrik, proud to be a member of KDE forums since 2008-Dec.
kjetilk
Registered Member
Posts
12
Karma
0

Re: Site-wide config

Tue Aug 06, 2019 10:25 pm
Great, thanks a lot! I'll try that!

Kjetil


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell