You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Thursday, December 18th 2008, 10:39pm

$HOME is not recognized in /etc/kde4/kdm/Xstartup

Hello. I am a very long user of gnome, but I decided to try and maybe switch to kde4. I have ubuntu and switched to the kubuntu desktop.
Anyway, I have a special configuration at home where I mount NFS shares with /etc/gdm/PostLogin/Default file where I have something like :

SERVER=server;
DREAMBOX=dreambox;
CLIENT=mordor;

mkdir $HOME/Films;
mount -t nfs -o user,rw,rsize=8192,wsize=8192,timeo=14,intr,hard $SERVER:/home/data/movies $HOME/Films;
MOUNTERR=$?;
if [ $MOUNTERR = 0 ] ; then
mkdir $HOME/Musique;
mount -t nfs -o user,rw,rsize=8192,wsize=8192,timeo=14,intr,hard $SERVER:/home/data/music $HOME/Musique;
...etc...

This mounts NFS shares to the mordor desktop. This script works fine with gnome.

I copied the same part in Xstartup and the mount is ok, but the mounts appear in
/Films instead of $HOME/Films etc...
as the script did not recognize the $HOME variable !

This is very surprising since this is a "system" variable and should be understood ! I found $HOME in the Xsession file so ...

Please do you have an idea why $HOME variable is not known ? This is very annoying :( ...