Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 236587 - gnome-base/gnome-session-2.22.3: ignoring .gnomerc
Summary: gnome-base/gnome-session-2.22.3: ignoring .gnomerc
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-03 15:35 UTC by Eduardo Suarez-Santana
Modified: 2014-07-27 08:44 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eduardo Suarez-Santana 2008-09-03 15:35:00 UTC
I have tried to setup umask for my gnome desktop in .gnomerc and .xprofile without success. I also have a debian box and there it works.

Reproducible: Always

Steps to Reproduce:
1. $ echo 'umask 077' > ~/.gnomerc
2. restart gnome
3. $ umask 
or if I create a file with nautilus.
Actual Results:  
files are created with mask 022

Expected Results:  
files created with mask 077
Comment 1 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-10-11 23:33:51 UTC
as far as I remember, setting stuff in ~/.gnomerc is deprecated.
Comment 2 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-02-22 18:27:39 UTC
how do you start your X btw ?
Comment 3 Eduardo Suarez-Santana 2009-02-23 20:58:35 UTC
I start X with xdm in /etc/init.d/

I am using gdm.
Comment 4 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-07-19 20:41:02 UTC
which version of gdm ?
Comment 5 Eduardo Suarez-Santana 2009-07-19 23:54:43 UTC
I haven't tried this for almost a year. I'll try asap.

Nowadays I am using gdm 2.20.9-r1. Is it already working?
Comment 6 Eduardo Suarez-Santana 2009-07-20 18:23:40 UTC
Running gnome-session-2.22.3-r1. Still the same.

Indeed a little bit weird. I set up umask to 077 to try. I logged out and logged in. Command line umask was 022. When I 'touched' a file and a dir in gnome-terminal, i got -rwxr--r-- and -rwxr-xr-x. When I created a file and a dir from nautilus, i got -rwxr--r-- and drwx------.

I changed the umask to 011 again. I logged out and logged in. Command line umask was 022. When I 'touched' a file and a dir in gnome-terminal, i got -rwxr--r-- and -rwxr-xr-x again. When I created a file and a dir from nautilus, i got -rwxr--r-- and drwx------ again.
Comment 7 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-07-20 19:54:37 UTC
maybe gdm is simply ignoring the Gnome session content. I've always been troubled by what looked like a double initialization.
Comment 8 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-08-26 20:57:57 UTC
ok after reading Xsession stuff the other day, .gnomerc is only sourced by other login manager than gdm, it appears gdm (at least 2.20 series and older) is using its own Xsession script which doesn't source .gnomerc.

For stuff like umask, you can achieve the same functionality by using .profile or .xprofile which is supposed to be cross-desktop.

This bug reminds me of bug #201625 and the defunct #25273.
Comment 9 Eduardo Suarez-Santana 2009-10-15 22:05:49 UTC
* gnome version 2.24.3
$ pwd
/home/eduardo
$ cat .xprofile
touch /home/eduardo/dot_xprofile
umask 012
$ cat .profile 
touch /home/eduardo/dot_profile
umask 023
$ cat .gnomerc 
touch /home/eduardo/dot_gnomerc
umask 034

After reloading, I get the dot_xprofile and the dot_profile files created. However,
$ umask
0022

:-(
Comment 10 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-02-12 10:19:33 UTC
moving to x11 and fdo since what we actually need is a discussion for a unified X startup setup. This is at least the 5th bug I see about this matter this year so we should really do something about it.
Comment 11 Pacho Ramos gentoo-dev 2014-07-27 08:44:37 UTC
This is probably obsolete now with current gnome stable