[K12OSN] gnome resolution saving

Nils Breunese nils at breun.nl
Tue Oct 9 14:54:49 UTC 2007


Michael Blinn wrote:

> 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 machine 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.
>
> 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.

Instead of using chmod and chown you could maybe use 'chattr +i  
filename' to make the file immutable? (Use 'chattr -i filename' to  
undo this.)

Nils Breunese.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: Dit deel van het bericht is digitaal ondertekend
URL: <http://listman.redhat.com/archives/k12osn/attachments/20071009/2619dac7/attachment.sig>


More information about the K12OSN mailing list