-
Notifications
You must be signed in to change notification settings - Fork 306
-
Notifications
You must be signed in to change notification settings - Fork 306
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
locale settings ignored #278
Comments
i wonder if this is whats causing your issue: try changing lang = en to lang = fr from your /etc/ly/config.ini (assuming you are using the config from your dotfile) |
My ly config from my dotfiles is not up to date with my actual ly config. The only meaningful line I have in my
The rest is either comments or blank lines. So that is unfortunately not the source of this issue. |
apparently, "lang" in config only affects language on ly's UI. somewhat semi-related: you can for the mean time source out the /etc/locale.conf as what the wiki already showed you to override whatever locale is being set. ok, just installed vanilla arch, and indeed, LANG is never set until successful login, hence /etc/profile.d/locale.sh will be able to source /etc/locale.conf correctly. LY on the other hand, somehows sets LANG to en_US.UTF-8, so when /etc/profile.d/locale.sh is called, it skips sourcing /etc/locale.conf due to LANG already set. Maybe one of the modules used in ly is setting it, because does not directly sets LANG variable. |
I have similar problem on Arch Linux. This is my
When I log into my system using
So
Exactly - seems the problem is caused by Is that a bug to fix, or does that simply result from Arch doing things differently to other distributions? |
I ran into the same problem However I commented that line and everything works. Line 223 in 78e2fd1
It remains to find out where LANG variable comes from. |
This should not have been merged because doing so will ignore system-configured /etc/profile locale as I've already stated above. Any system not using en_EN as.local will have some issues. |
I'm having the same issue on Artix openrc. The only file defining LANG env vars is /etc/profile.d/locale.sh which runs after login. |
Does any1 have a temporary fix? This is the only thing that's preventing me from using ly... |
valentino-sm's fix worked for me as well. |
@negativeExponent if the issue is arch-specific there could be the workaround in AUR package like: |
This issue is still a thing. I am having it on arch with Ly version v0.6.0.r0.g1c2be47. |
Unfortunately, the problem is current.
|
Since this issue still persists I thought I'd explain how to apply @valentino-sm solution easily on arch in case anyone needs it:
pkgctl repo clone --protocol=https ly
cd ly
build() {
sed -i "/setenv(\"LANG\"/s/^/\/\//" $srcdir/ly/src/login.c
make -C "$pkgname"
} so basically add the
makepkg -si Of course one could write a patch for this or automate it in some other way but it doesn't look like ly receives updates that often so it souldn't be too much work. P.S. I didn't explain much about the steps but I think becoming familiar with arch build/packaging system is pretty important anyway so I'd suggest taking a look at the links if you don't know what the commands do |
Thanks @cameloper and @valentino-sm, this solution works for me just fine. Arch Linux |
When I launch any session from ly (tested in my case with a shell session and Awesome), the locale set in
/etc/locale.conf
is not respected and all locales are set toen_US.UTF-8
.However, if I manually create a new session from any available TTY (such as TTY1), I get the correct output as set in my locale configuration, be it in the TTY console or in a graphical session started with
startx
.For the record, here is my
/etc/locale.conf
file:I am currently running an up-to-date Arch Linux system with the package
ly 0.5.2-2
, and the output ofly --version
isLy version v0.5.2.r0.g1523d08
.I tested if a workaround was possible with a per-user locale config in
$XDG_CONFIG_HOME/locale.conf
(in my case$HOME/.config/locale.conf
) as instructed on the Arch Wiki, but to no avail, I still get the same output when runninglocale
.The text was updated successfully, but these errors were encountered: