PDA

View Full Version : [xubuntu] $XDG_CACHE_HOME relocation of it to another directory



metallica1973
November 17th, 2010, 04:21 PM
I am working on a project to where I need to relocate the standard cache directory locations within Xubuntu. I read this article and It doesn't seem work for me

http://blog.electronsmith.com/?p=191

I add this entry to my /home/test/.pam_environment file without success.


#!/bin/bash
$XDG_CACHE_HOME=/tmp/.cache

and I have also added this to my /etc/environment file as well without success.


$XDG_CACHE_HOME=/tmp/.cache

and without quotes


XDG_CACHE_HOME="/tmp/.cache"

no success!!

Brandon Williams
November 17th, 2010, 07:10 PM
I haven't used .pam_environment and I don't recommend making changes to /etc/environment. Instead, for an individual user, you can set and export the value in ~/.xprofile. This file is sourced by /etc/gdm/Xsession when you log in. Here is what the file should look like to make sure the setting you want impacts all applications:

export XDG_CACHE_HOME=/tmp/.cache

metallica1973
November 17th, 2010, 07:38 PM
Oddly once I fireup Chromium it worked and stores it cached under


/tmp/various/.cache

but the minute I close it, it resorts back to the old directory.


~/.cache/chromium

?????????????

I will try your suggestions. I will get back to you thanks