Reply to topic

KDE shared files

manifesto
Registered Member
Posts
18
Karma
0
OS

KDE shared files

Thu Mar 07, 2013 8:43 am
Hi,

I would like to add a directory to store shared components between all users/distro/network.
Let's say I create a directory called /kde and in it themes, walpappers, prop files, .desktop files instead of having it stored in /usr /etc or users .kde(4) directory.
If I want to have the users having access to this ressources, what should I do ?
Adding some environements variables on user basis or modify system files ?

Also I notice that most .desktop files refers to icons without path, I guess there is a default search path for icons.
What is this search path and how to configure ?

Thanks for your good advices.
User avatar bcooksley
Administrator
Posts
18592
Karma
83
OS

Re: KDE shared files

Fri Mar 08, 2013 11:15 pm
This is based upon a series of environment variables.
Assuming that "/kde" is the path where the addons are located on all machines on this network, and "/usr" is where KDE is installed on all machines, you need to set the following environment variables prior to KDE startup.
Code: Select all
export KDEDIRS=/usr:/kde
export XDG_DATA_DIRS=/usr/share:/kde/share
export XDG_CONFIG_DIRS=/etc/xdg:/kde/etc/xdg


The most standard way of setting the environment as part of the KDE startup process is in ~/.kde/env/ (which may not exist, and the file containing the above must be executable and have a .sh extension).


System Settings and Device Actions KCM maintainer
Image
manifesto
Registered Member
Posts
18
Karma
0
OS

Re: KDE shared files

Sat Mar 09, 2013 10:45 pm
Thanks a lot bcooksley.
I will give a try to that.
Setting up that in user env can be ok or maybe in kdm startup files.
manifesto
Registered Member
Posts
18
Karma
0
OS

Re: KDE shared files  Topic is solved

Tue Mar 12, 2013 8:49 am
Hi,

Just to summarise what I have done in case somebody want to achieve same thing :
1 - Create a script ~/.kde4/env/local-path.sh (data/apps/KDE is where I set all ressources)
Code: Select all
#!/bin/bash
export KDEDIRS=/usr:/data/apps/KDE/
export XDG_DATA_DIRS=/usr/local/share/:/usr/share/:/data/apps/KDE/share

2 - Create a directory tree like in .kde4
Code: Select all
Rosa64:/data/apps/KDE$ ls share/ share/apps/
share/:
apps  icons  wallpapers
share/apps/:
desktoptheme

Then I can access this ressources from any account that has /data/apps/KDE mounted.

Thanks for help
User avatar bcooksley
Administrator
Posts
18592
Karma
83
OS

Re: KDE shared files

Wed Mar 13, 2013 7:35 am
I've now marked this as solved.


System Settings and Device Actions KCM maintainer
Image

 
Reply to topic

Bookmarks



Who is online

Registered users: Alexa [Bot], apater, Baidu [Spider], bcooksley, Bing [Bot], eagleton, Exabot [Bot], Google [Bot], google01103, GreatEmerald, hmethorst, khsien, koriun, La Ninje, lazyit, Majestic-12 [Bot], SecretCode, Sentynel, Steve T, urgo, Yahoo [Bot]

cron