Natenoms Wiki

Weil Teilen Spaß macht :)

User Tools

Site Tools


en:linux:kde:tempfiles

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:linux:kde:tempfiles [2017/02/20 14:12]
Natenom
en:linux:kde:tempfiles [2018/04/02 12:36] (current)
Line 1: Line 1:
 ======Temporary files in KDE/​SC====== ======Temporary files in KDE/​SC======
-[[Linux/KDE|KDE]] ​SC uses several directories on your filesystem to store temporary files. Most of those files are unneccesary and can be removed when KDE is not running; at least I do that :P+KDE SC uses several directories on your filesystem to store temporary files. Most of those files are unneccesary and can be removed when KDE is not running; at least I do that :P
  
-Those directories are (defaults in [[Gentoo]]): +Those directories are (defaults in Gentoo): 
-* /​tmp/​kde-$USER +  * /​tmp/​kde-$USER 
-* /​var/​tmp/​kdecache-$USER/​ +  * /​var/​tmp/​kdecache-$USER/​ 
-* /​tmp/​ksocket-$USER/​+  * /​tmp/​ksocket-$USER/​
  
-More information about those directories can be found [http://​techbase.kde.org/​KDE_System_Administration/​KDE_Filesystem_Hierarchy#​Outside_the_Directory_Tree here].+More information about those directories can be found [[http://​techbase.kde.org/​KDE_System_Administration/​KDE_Filesystem_Hierarchy#​Outside_the_Directory_Tree|here]].
  
-==Disadvantages of different places for files== +=====Disadvantages of different places for files===== 
-* If one uses an encrypted filesystem for ''/​home''​ only, sensible data is still accessible in the non encrypted / filesystem. +  * If one uses an encrypted filesystem for ''/​home''​ only, sensible data is still accessible in the non encrypted / filesystem. 
-* Also in a fully encrypted filesystem you may want to have your data in your user directory. +  * Also in a fully encrypted filesystem you may want to have your data in your user directory. 
-* In my case I don't like the amout of data that is used on my very small / partition.+  * In my case I don't like the amout of data that is used on my very small ''​/'' ​partition.
  
-==Adapt paths==+=====Adapt paths=====
 With environment variables one can tell KDE to use other paths for those directories. With environment variables one can tell KDE to use other paths for those directories.
  
-[[Linux/KDE|KDE]] ​uses ''​KDETMP''​ and ''​KDEVARTMP''​. To change them while KDE starts, create the file '''​changeenv.sh'''​ in ''​$KDEHOME/​env'':​+KDE uses ''​KDETMP''​ and ''​KDEVARTMP''​. To change them while KDE starts, create the file '''​changeenv.sh'''​ in ''​$KDEHOME/​env'':​
  
-<source lang="bash">+<code bash>
 #!/bin/bash #!/bin/bash
  
Line 28: Line 28:
 [ -d $KDETMP ] || mkdir -p $KDETMP [ -d $KDETMP ] || mkdir -p $KDETMP
 [ -d $KDEVARTMP ] || mkdir -p $KDEVARTMP [ -d $KDEVARTMP ] || mkdir -p $KDEVARTMP
-</source>+</code>
  
-It is important that the file ends with ''​.sh''​ so KDE really executes it. Technical information about this can be found [http://​userbase.kde.org/​Session_Environment_Variables here].+It is important that the file ends with ''​.sh''​ so KDE really executes it. Technical information about this can be found [[http://​userbase.kde.org/​Session_Environment_Variables|here]].
  
 Do not forget to make it executable: Do not forget to make it executable:
Line 38: Line 38:
  
 Now you have the following directories in ''/​home/​username/​.kde4'':​ Now you have the following directories in ''/​home/​username/​.kde4'':​
-* kdecache-username +  ​* kdecache-username 
-* kde-username +  * kde-username 
-* ksocket-username+  * ksocket-username
  
 The first directory can be removed from time to time, the last two can be removed on startup/​shutdown of your system on a regular basis. The first directory can be removed from time to time, the last two can be removed on startup/​shutdown of your system on a regular basis.
-[[Category:​KDE]] 
-[[Category:​Shell scripts]] 
-[[Category:​Software for Linux]] 
  
 +{{tag>​KDE KDE_SC SC Desktop Temporary files}}
en/linux/kde/tempfiles.1487596329.txt.gz · Last modified: 2018/04/02 12:36 (external edit)