Reply
Thread Tools
Posts: 46 | Thanked: 5 times | Joined on Sep 2009
#1
Can't figure this out.. I need to add a few places in $PATH permanently for osso-xterm and cannot find any references or documentation on how to do this on my N900 / Maemo5.

Please advise
 
Posts: 336 | Thanked: 610 times | Joined on Apr 2008 @ France
#2
If my memory serves me well, you should be able to create a .profile file in your home directory (~/.profile) and add your exports there.

For example:

Code:
echo "export FOO=bar" >> ~/.profile
Or alternatively, edit /etc/profile, however that might be dangerous as that file is used for nearly all -- if not all -- the terminal sessions that run on the device.
 
Posts: 46 | Thanked: 5 times | Joined on Sep 2009
#3
Originally Posted by CrashandDie View Post
If my memory serves me well, you should be able to create a .profile file in your home directory (~/.profile) and add your exports there.

For example:

Code:
echo "export FOO=bar" >> ~/.profile
Or alternatively, edit /etc/profile, however that might be dangerous as that file is used for nearly all -- if not all -- the terminal sessions that run on the device.
No unfortunately I had tried both and neither work :s
 
nowave7's Avatar
Posts: 245 | Thanked: 62 times | Joined on Jan 2009 @ Bad Homburg, Deutschland
#4
Have you tried putting it to .bashrc in your home directory?
Something like this:

Code:
export PATH=$PATH:/home/user/MyDocs
__________________
Save the whales, feed the hungry, free the mallocs!
 
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#5
Originally Posted by techdork View Post
No unfortunately I had tried both and neither work :s
Setting environment variables in the ~/.profile works fine for me - I modify both the PATH and PERL5LIB variables there.
 

The Following 3 Users Say Thank You to Rob1n For This Useful 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.
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 08:10.