View Single Post
ginggs's Avatar
Posts: 306 | Thanked: 582 times | Joined on Mar 2012
#6
Originally Posted by Rob1n View Post
Setting environment variables in the ~/.profile works fine for me - I modify both the PATH and PERL5LIB variables there.
Works here too.

Edit: Oops, the following applies to the Nokia N9:

I recently lost ~/.profile due to a corrupt filesystem on /dev/mmcblk0p3.

I found the stock Twitter application did not show any tweets and wrote the following to /var/log/syslog:
Code:
twitter-meego[4859]: CRITICAL-Error: Not found XDG_CACHE_HOME environment variable
The Documents application (office-tools) would list documents, but would not open them. It complained about being unable to write to '/libkok'.

I managed to find a copy of ~/.profile which think is untouched (I don't recall making any changes here):
Code:
export DISPLAY=':0'
export XDG_DATA_HOME="$HOME/.local/share/"
export XDG_CACHE_HOME="$HOME/.cache"

eval `/usr/bin/aegis-session --sh-syntax --with-ulimit`

if [ -e /etc/profile.d/language.sh ] ; then
     . /etc/profile.d/language.sh
fi
After restoring this file (and possibly rebooting), Twitter and Documents started working again.