Reply to topic

Change location of .kde4 and .kdevduchain directory

pstein
Registered Member
Posts
10
Karma
0
Hallo,

the following situation: At my workplace in the University (I'm a student) I have my own computer which is connected via network to some server. My home directory (and that of some other students) is located on the server, not on my local drive. When I'm working with KDevelop now, KDevelop has a lot of interaction via network since KDevelop is constantly writing a lot into the .kde4 and .kdevduchain directories. This makes KDevelop slow. I moved the directories to my local drive and replaced them by links, but I'm not completely content with that. I'd rather tell KDE to make this directory directly on my local drive. Is this possible? It also may be sufficient to only move some sub-directories of the above directories.

Thank you in advance!
User avatar bcooksley
Administrator
Posts
18605
Karma
83
OS
Not sure how to move ~/.kdevduchain, but for ~/.kde4 you can set the KDEHOME environment variable.
I would be interested in which files KDevelop is writing into though (strace or lsof are your friends I guess).

I'm going to move this to the KDevelop forum as they may know what environment variables to set to move ~/.kdevduchain.


System Settings and Device Actions KCM maintainer
Image
pstein
Registered Member
Posts
10
Karma
0
I do not know the exact files either. I just replaced both folders with links and its running faster since then. For .kde4, I know that there is one file in /share/apps/... where KDevelop writes a file for data recovery (e.g. for when it crashes), i.e. KDevelop is writing into this file on disk constantly. But thank you for your help, I will check this out.
User avatar scummos
KDE Developer
Posts
616
Karma
4
OS
Hi,

in kdevelop master, the kdevduchain directory has been moved to .cache, which is probably a more appropriate location. You can modify the location in older versions by setting the $KDEV_DUCHAIN_DIR environment variable. You can also just symlink that path to somewhere else.

Greetings,
Sven


pstein
Registered Member
Posts
10
Karma
0
Ok, I guess this answers my question. I will try it later on. Thanks for this very fast answers.
pstein
Registered Member
Posts
10
Karma
0
Exporting KDE_HOME worked, but if I do the same with KDEV_DUCHAIN_DIR, nothing happens. It still writes into ~/.kdevduchain. Any suggestions here?
User avatar scummos
KDE Developer
Posts
616
Karma
4
OS
Hi,

I'd suggest you try the symlink method, as the environment variable thing will be removed in 4.5 anyways.

Greetings,
Sven


pstein
Registered Member
Posts
10
Karma
0
Ok, then I'll keep that (it works). The only problem with it is that I often need to log to another via ssh. When I'm then calling some KDE application(usually Kate and only by accident, does not need it anyway), it cannot resolve the link and overwrites it with a new folder, I then need to reset the link which is annoying but not tragical. But it runs fast and smooth now and this is not really a problem.

Thank you for your help.

 
Reply to topic

Bookmarks



Who is online

Registered users: Alexa [Bot], Baidu [Spider], Bing [Bot], dniitall, Exabot [Bot], Google [Bot], google01103, koriun, Majestic-12 [Bot], north, ooker, paulus3005, psbot [Picsearch], rdorsch, rulet111, scummos, SecretCode, Uri_Herrera, vascobasque, wimwillemsen, Yahoo [Bot]