<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
I found a problem when integrating NX access from home with users who
log in at clients with different video capabilities. The general idea
was that gnome saves the last resolution the user
logged in as so that it will remember their preference - But I'm
setting preferences in lts.conf to be <i>machine</i> specific because
we have a variety of terminals & monitors, so we don't
want gnome to do that. Also, NX honors that gnome setting blindly - if
I'm logging in from home using a Windows NX Client session at 1024x768,
I can only see a small portion of my normal 1440x900 desktop, and no
way to change this.<br>
<br>
One way around this is to make it so the user
can't read or write to the directory where gnome stores the %gconf.xml
setting file at logout. I did it by creating a little bash script that
will iterate through all the
directories in /home and chown/chmod the directory if it exists. I
created this file as /etc/cron.daily/gnome_permissions so that it will
run every night.<br>
<br>
I thought perhaps someone else might have run into this problem, hence
the description & the small script - it took me awhile to find out
where gnome was storing this.<br>
<br>
Cheers,<br>
  Michael<br>
<br>
# 10/9/07 MPB for removing/disabling gnome saving resolution upon
logout - fixes NoMachine remote NX screen resolution<br>
<br>
#! /bin/bash<br>
<br>
for user in `ls /home`<br>
do<br>
if [ -d /home/$user/.gconf/desktop/gnome/screen/default/0 ]<br>
then<br>
        chown root.root
/home/$user/.gconf/desktop/gnome/screen/default/0;<br>
        chmod 700 /home/$user/.gconf/desktop/gnome/screen/default/0;<br>
fi<br>
done<br>
<br>
</body>
</html>