On 2016-03-07 10:48, Tim wrote:
>
>> Then I suppose that replacing
>>
>> "$XDG_CURRENT_DESKTOP" != 'GNOME'
>>
>> with
>>
>> "${XDG_CURRENT_DESKTOP%%-*}" != 'GNOME'
>>
>> takes care of it.
>
> well that assumes that there is a hyphon in the name, while that is
> the case for the ones I know of, its not necessarily guaranteed.
> Thus:
>
> "${XDG_CURRENT_DESKTOP##*:}" should be safer, GNOME (or Unity) should
> always be last since its essentially a fallback value
I proposed 'the hyphen way' to include GNOME Flashback. An alternative, until it has been changed for Flashback, would be:
"${XDG_CURRENT_DESKTOP##*:}" != 'GNOME' and "${XDG_CURRENT_DESKTOP%%:*}" != 'GNOME-Flashback'
>> (I failed to change the display language with Region & Language,
>> and had to do it manually. However, using Region & Language for the
>> purpose worked after I had used gnome-language-selector to switch
>> language once, and thus created ~/.pam_environment and set the
>> "Language" and "FormatsLocale" values in
>> /var/lib/AccountsService/users/gunnar!? But that's a separate
>> issue.)
>
> Does gnome-control-center need to create ~/.pam_environment?
No, that is done by accountsservice (the Ubuntu version of it). l-s doesn't write to ~/.pam_environment directly - no reason why g-c-c would either.
I haven't digged deep into the reason why it fails when there are no user specific settings previously. But when I started g-c-c from command line, I noticed an incorrect error message which said something like "ja_JP.UTF-8 is not installed" ... Probably there is a subtle bug in the current patch.
> It would be good to allow users the option of using fcitx (even if
> poorly integrated), however lets just get the default session working
> for now!
On 2016-03-07 10:48, Tim wrote: DESKTOP" != 'GNOME' CURRENT_ DESKTOP% %-*}" != 'GNOME' CURRENT_ DESKTOP# #*:}" should be safer, GNOME (or Unity) should
>
>> Then I suppose that replacing
>>
>> "$XDG_CURRENT_
>>
>> with
>>
>> "${XDG_
>>
>> takes care of it.
>
> well that assumes that there is a hyphon in the name, while that is
> the case for the ones I know of, its not necessarily guaranteed.
> Thus:
>
> "${XDG_
> always be last since its essentially a fallback value
I proposed 'the hyphen way' to include GNOME Flashback. An alternative, until it has been changed for Flashback, would be:
"${XDG_ CURRENT_ DESKTOP# #*:}" != 'GNOME' and "${XDG_ CURRENT_ DESKTOP% %:*}" != 'GNOME-Flashback'
>> (I failed to change the display language with Region & Language, selector to switch AccountsService /users/ gunnar! ? But that's a separate center need to create ~/.pam_environment?
>> and had to do it manually. However, using Region & Language for the
>> purpose worked after I had used gnome-language-
>> language once, and thus created ~/.pam_environment and set the
>> "Language" and "FormatsLocale" values in
>> /var/lib/
>> issue.)
>
> Does gnome-control-
No, that is done by accountsservice (the Ubuntu version of it). l-s doesn't write to ~/.pam_environment directly - no reason why g-c-c would either.
I haven't digged deep into the reason why it fails when there are no user specific settings previously. But when I started g-c-c from command line, I noticed an incorrect error message which said something like "ja_JP.UTF-8 is not installed" ... Probably there is a subtle bug in the current patch.
> It would be good to allow users the option of using fcitx (even if
> poorly integrated), however lets just get the default session working
> for now!
Right.