Re: [Bug 306591] Re: Locale settings not used by GNOME session

2009-02-08 Thread Andrew Conkling
On Sun, Feb 8, 2009 at 00:39, Jonathan Marsden 
wrote:

> My change to the summary line was trying (apparently inadequately, since
> you undid it!) to suggest that the issue is not really "locale settings
> not respected by Gnome".  Locale settings most definitely *are*
> respected by Gnome, when they are set in /etc/environment, or when set
> from the gdm login screen.
>
> Rephrasing a bit: the issue being reported is (as I understand it[...]):
> Gnome does not use locale settings which are set
> in the user's shell initialization file.


Sorry! I've updated the status to reflect that. I was simply trying to say
that the problem is not Bash-specific. But I see your point


> The question then becomes: Should Gnome in fact examine and use such
> settings, since Gnome does not itself necessarily use any per-session
> shell at all!  Why would Gnome be expected to look in a user's shell
> initialization file?  Is there documentation out there that says it
> should or will do so?


Good question. I've simply been assuming, intuitively, that my shell
initialization is where I put all environment variables, commands to be run
on login, etc.

(A quick test showed that my `echo "foobar" >> Desktop/filename` that I
added to ~/.zshrc was run once when logging into Gnome, so I don't think my
assumption is too far off? That discovery is confusing.)

I am not sure there is really
> much of a case for saying that Gnome *should* be parsing shell
> initialization files to look for locale settings -- is there?  I'm open
> to hearing the argument that it should really do that, but trying to
> look at this from the user's viewpoint, I don't (yet?) see why it
> should.


I think the point isn't that Gnome should look for locale settings, but that
it should parse anything in the shell's initialization file once and only
once.


> The shell respects the locale settings set in the global environment and
> its initialization file(s); Gnome respects the locale settings in the
> global environment and it is own initialization files.  (For example,
> have you considered setting locale-related variables in ~/.xsession, if
> you want to explore this kind of thing?  Maybe in ~/.dmrc ??)


No, I haven't tried any of this; I've researched the topic a half dozen
times over the years and have found scant documentation/explanation. I even
brought it up on the seemingly ignored gnome-list—and, of course, got no
answers:
http://mail.gnome.org/archives/gnome-list/2008-September/msg3.html.

Logically, if you are using a GUI, then you set its locale at GUI
> session startup, just as you would set a shell's locale at shell
> startup.  Each has a different way to specify its initial settings
> (though of course both respect the global environment).
>
> Does this make sense?


Yes, I suppose. But that leaves the question: where do I put environment
variables that apply to "me", i.e. in a graphical setting and a terminal
one? /etc/environment is not appropriate (I'm only changing the locale
settings for my username) and I've never heard about anything else other
than what you mention above. :) If you have any ideas, I'd love to hear
them!

I'm reopening this, but I understand why you set it to Incomplete for the
time being. I'm still convinced *something* is not clear, but it could
easily be my understanding of login/profile/variable initialization. But if
this isn't a bug, I'd think there should be some documentation somewhere
explaining why (not).

-- 
Locale settings in shell initialization not used by GNOME session
https://bugs.launchpad.net/bugs/306591
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to meta-gnome2 in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

[Bug 306591] Re: Locale settings not used by GNOME session

2009-02-07 Thread Jonathan Marsden
Changing status to incomplete: unclear if this is really a bug, and
earlier confirmation from refdoc turned out to be a different issue.

** Changed in: meta-gnome2 (Ubuntu)
   Status: Confirmed => Incomplete

-- 
Locale settings not used by GNOME session
https://bugs.launchpad.net/bugs/306591
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to meta-gnome2 in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 306591] Re: Locale settings not used by GNOME session

2009-02-07 Thread Jonathan Marsden
Andrew:

> Jonathan, do you have any idea what may be at fault here?
> I'm interested in filing this upstream but I'm not sure which Gnome package 
> to target.

The more I look at this, the more I think there may well be no real bug
here at all.

My change to the summary line was trying (apparently inadequately, since
you undid it!) to suggest that the issue is not really "locale settings
not respected by Gnome".  Locale settings most definitely *are*
respected by Gnome, when they are set in /etc/environment, or when set
from the gdm login screen.  I have multiple languages installed on this
machine (English, French, German and Spanish), and I can log in using
any one of them, and get appropriate menus, and clock date/time format,
spell checking, etc.  Locales *are* being respected.  Unlike English,
French, German and Spanish, I don't speak any Egyptian Arabic, so I've
not tried logging in in that language :)

Rephrasing a bit: the issue being reported is (as I understand it, and
now we are clear that refdoc's locale issue is clearly not a part of
this specific issue): Gnome does not use locale settings which are set
in the user's shell initialization file.

The question then becomes: Should Gnome in fact examine and use such
settings, since Gnome does not itself necessarily use any per-session
shell at all!  Why would Gnome be expected to look in a user's shell
initialization file?  Is there documentation out there that says it
should or will do so?

Especially since Ubuntu 8.10 has the "fast session switching"
capability, allowing one to have multiple sessions open (logged in as
different users) in different locales, I am not sure there is really
much of a case for saying that Gnome *should* be parsing shell
initialization files to look for locale settings -- is there?  I'm open
to hearing the argument that it should really do that, but trying to
look at this from the user's viewpoint, I don't (yet?) see why it
should.

The shell respects the locale settings set in the global environment and
its initialization file(s); Gnome respects the locale settings in the
global environment and it is own initialization files.  (For example,
have you considered setting locale-related variables in ~/.xsession, if
you want to explore this kind of thing?  Maybe in ~/.dmrc ??)

Logically, if you are using a GUI, then you set its locale at GUI
session startup, just as you would set a shell's locale at shell
startup.  Each has a different way to specify its initial settings
(though of course both respect the global environment).

Does this make sense?

Jonathan

-- 
Locale settings not used by GNOME session
https://bugs.launchpad.net/bugs/306591
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to meta-gnome2 in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 306591] Re: Locale settings not used by GNOME session

2009-02-07 Thread Andrew Conkling
Jonathan, do you have any idea what may be at fault here? I'm interested
in filing this upstream but I'm not sure which Gnome package to target.

-- 
Locale settings not used by GNOME session
https://bugs.launchpad.net/bugs/306591
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to meta-gnome2 in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 306591] Re: Locale settings not used by GNOME session

2009-02-07 Thread Andrew Conkling
Changed summary back. To be clear, I am using ZSH as my shell, not Bash;
this problem is not Bash-specific.

** Summary changed:

- Locale settings in ~/.bashrc not used by GNOME session
+ Locale settings not used by GNOME session

-- 
Locale settings not used by GNOME session
https://bugs.launchpad.net/bugs/306591
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to meta-gnome2 in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs