Skip to content

Ask for a language at setup, and offer one in the menu - #10949

Open
sbelcl wants to merge 7 commits into
omacom:quattrofrom
sbelcl:system-language
Open

sbelcl wants to merge 7 commits into
omacom:quattrofrom
sbelcl:system-language

Conversation

@sbelcl

@sbelcl sbelcl commented Sep 9, 2026

Copy link
Copy Markdown

Omarchy asks for a keyboard layout and derives everything else from it, so
LANG stays en_US.UTF-8 until somebody edits /etc/locale.gen by hand and
runs locale-gen. There is no locale question at setup (#1187) and no way to
change it afterwards short of a terminal (#3161). A Slovenian desktop ends up
as translated applications sitting on an American locale — English dates,
Letter paper, 1,234.56.

Two additions, both in shapes that already exist here.

omarchy-menu-language is omarchy-menu-timezone with localectl in
place of timedatectl: list, hand to omarchy-menu-select, apply, notify. It
sits at update.language, beside Timezone, where someone changing a system
setting already goes. The locale name rides along as the picker's subtext,
which omarchy-menu-select hands back as the stable key, so what comes back
is sl_SI.UTF-8 rather than a label.

The setup form asks for a language beside the timezone, and
configure_language persists it with the rest of the owner's answers.

This does not translate anything

Setting the system locale is what GTK and Qt applications, browsers and
xdg-user-dirs follow. The Omarchy interface stays English, and this PR takes
no position on whether it ever should be otherwise —
shell/plugins/panels/clock/Panel.qml says the interface is English
throughout, and nothing here disagrees with that.

Three details worth a reviewer's eye

Locale names go through verbatim. omarchy-locale-list reads
/usr/share/i18n/SUPPORTED and each locale's own LC_IDENTIFICATION rather
than carrying a table, so it tracks whatever glibc ships. About half the
entries carry a codeset (en_US.UTF-8) and half do not (aa_ER,
be_BY@latin), and that first field is both what systemd-localed matches
before agreeing to generate a locale and what locale-gen hands to
localedef. Rewriting one form into the other breaks it.

The setup default is not derived from the keyboard layout, tempting as
that is. Layout codes are country codes and locale prefixes are language
codes, and they collide: the Slovenian layout is si, while si_LK is
Sinhala. I built that heuristic first and it confidently suggested Sinhala for
a Slovenian keyboard. A guess that wrong is worse than no guess, and filtering
for "Slov" costs four keystrokes.

configure_language tries systemd-firstboot first and falls back to
localectl
, which is also what generates a locale nobody has generated yet
— so an owner who does not speak the image's language gets a working locale
rather than a named one that does not exist. A locale glibc does not know
keeps the default rather than failing setup over a language.

Testing

setup-form-test.sh covers the new prompt, its fallback and its Esc/Ctrl+C
paths; menu-test.sh passes; the menu file still parses. The picker and the
menu row have been exercised on a running 4.0.2 desktop, switching that
machine to sl_SI.UTF-8 and back.


Related but deliberately not in this PR: #7284 asks for a translation layer
for the shell's own strings, which is a much larger question and touches the
English-throughout decision directly. There's a prototype for that on a
separate branch, and it is not needed for any of the above.

🤖 Generated with Claude Code

https://claude.ai/code/session_01JMv63sA2aQLdMTiF2MF5LB

Omarchy asks for a keyboard layout and derives everything else from
it, so LANG stays en_US.UTF-8 until somebody edits /etc/locale.gen by
hand and runs locale-gen. There is no locale question at setup (omacom#1187)
and no way to change it afterwards short of a terminal (omacom#3161), which
leaves a Slovenian desktop of translated applications sitting on an
American locale, with English dates and en_US paper sizes.

Two additions, both in Omarchy's existing shapes.

omarchy-menu-language is omarchy-menu-timezone with localectl in place
of timedatectl: list, hand to omarchy-menu-select, apply, notify. It
sits at update.language, beside Timezone, where someone looking to
change a system setting already goes. The locale name rides along as
the picker's subtext, which omarchy-menu-select returns as the stable
key, so what comes back is sl_SI.UTF-8 rather than a label.

The setup form asks for a language beside the timezone, and
configure_language persists it with the rest of the owner's answers.

Neither of these translates anything. Setting the system locale is
what GTK and Qt applications, browsers and xdg-user-dirs follow; the
Omarchy interface stays English, and this takes no position on whether
it should ever be anything else.

Three details worth a reviewer's eye:

omarchy-locale-list reads /usr/share/i18n/SUPPORTED and each locale's
own LC_IDENTIFICATION rather than carrying a table, so it tracks
whatever glibc ships. Names go through verbatim: about half the
entries carry a codeset and half do not, and that first field is both
what systemd-localed matches before agreeing to generate a locale and
what locale-gen hands to localedef. Rewriting one form into the other
breaks it.

The setup default is not derived from the keyboard layout, tempting as
that is. Layout codes are country codes and locale prefixes are
language codes, and they collide: the Slovenian layout is "si", while
si_LK is Sinhala. A guess that confident and that wrong is worse than
no guess, and filtering for "Slov" costs four keystrokes.

configure_language tries systemd-firstboot first and falls back to
localectl, which is also what generates a locale nobody has generated
yet -- so an owner who does not speak the image's language gets a
working locale rather than a named one that does not exist. A locale
glibc does not know keeps the default rather than failing setup over a
language.

Verified: setup-form-test.sh covers the new prompt, its fallback and
its Esc/Ctrl+C paths; menu-test.sh passes; the menu file still parses
at 321 rows.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01JMv63sA2aQLdMTiF2MF5LB
@linyiru

linyiru commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

This is the piece I had assumed was missing, and it is more careful than I expected — reading SUPPORTED's first field verbatim rather than reconstructing names, keeping the codeset-bearing and bare forms distinct, leaving C.UTF-8 out, and letting localectl do the generation. I have been working on a zh-TW localization and tested this against the locales I care about. One thing checks out that I think is worth recording, and two are usability gaps a picker built this way can't avoid without a hint.

The localectl claim holds, and it is worth stating what it depends on. The comment says "localectl generates the locale on the way through when nobody has yet", which is load-bearing here — Omarchy runs no locale-gen anywhere, and a LANG naming an ungenerated locale silently falls back to C. Arch's systemd-localed does have the integration compiled in: locale_gen_check_available, locale_gen_locale_supported, locale_gen_enable_locale, locale_gen_process_locale, and it references /etc/locale.gen and /usr/bin/locale-gen. Both exist on a stock Arch box.

The dependency is worth a word in the comment, because the binary's own strings show how it degrades: "Unable to determine whether /usr/bin/locale-gen exists and is executable, assuming it is not". If either path is missing, localectl set-locale still succeeds and writes /etc/locale.conf, and the locale is simply never generated. For reference, on a stock box /etc/locale.gen has exactly one uncommented entry and locale -a lists two UTF-8 locales, so this really is the only thing standing between a chosen language and a C fallback.

Ten languages produce rows a user cannot tell apart. gum filter shows language and territory, and glibc's @modifier variants share both. Running omarchy-locale-list on Arch, 20 of 327 rows fall into 10 groups with identical labels:

Belarusian (Belarus)          be_BY.UTF-8   be_BY@latin
Catalan (Spain)               ca_ES.UTF-8   ca_ES@valencia
Geez (Eritrea)                gez_ER        gez_ER@abegede
Geez (Ethiopia)               gez_ET        gez_ET@abegede
Kashmiri (India)              ks_IN         ks_IN@devanagari
Min Nan Chinese (Taiwan)      nan_TW        nan_TW@latin
Serbian (Serbia)              sr_RS         sr_RS@latin
Sindhi (India)                sd_IN         sd_IN@devanagari
Tatar (Russia)                tt_RU         tt_RU@iqtelif
Uzbek (Uzbekistan)            uz_UZ.UTF-8   uz_UZ@cyrillic

Picking "Serbian (Serbia)" is a coin flip between Cyrillic and Latin, and "Catalan (Spain)" cannot express Valencian at all. Since the ambiguity is exactly the @modifier the name drops, appending it only where the label is not unique would fix all ten without lengthening the other 307 rows.

Chinese needs a hint that glibc does not supply. All four Chinese rows carry the bare language name:

zh_CN.UTF-8   Chinese   China                    (Simplified)
zh_HK.UTF-8   Chinese   Hong Kong SAR China      (Traditional)
zh_SG.UTF-8   Chinese   Singapore                (Simplified)
zh_TW.UTF-8   Chinese   Taiwan                   (Traditional)

Simplified and Traditional are different written forms, and nothing on screen says which is which — the user has to already know that Taiwan and Hong Kong are Traditional while China and Singapore are Simplified. glibc disambiguates when it feels like it (pt_BR is "Brazilian Portuguese", pt_PT is "European Portuguese") but for Chinese it does not, so this one cannot be solved by reading LC_IDENTIFICATION more carefully. A small table mapping locale name to a script suffix, applied only where it is needed, would cover it.

Related, and only worth a sentence: because the list is glibc-complete rather than curated, a user in Taiwan is offered six rows across five languages — Chinese, Mandarin Chinese, Hakka Chinese, Literary Chinese and Min Nan Chinese (twice, nan_TW and nan_TW@latin) — of which only zh_TW.UTF-8 will ever have translations or reliable font coverage. Completeness is a reasonable default, but it might be worth knowing that's the shape of it.

One catalog-naming consequence for whoever ends up owning the message catalogs, since this PR decides which LANG values are reachable: all four Chinese locales fall back to a bare zh second, so a zh catalog is wrong for whichever half it isn't written in. I measured this in real gettext with catalogs for zh and zh_TW — LANGUAGE=zh_Hant:zh_TW resolves to zh, not zh_TW. Same shape for a bare pt against pt_BR/pt_PT. Not something this PR has to solve, but it argues for never shipping a language-only catalog.

Happy to send the @modifier disambiguation and the Chinese script hint as a PR against this branch if that would help.

@linyiru checked the claim that localectl generates a locale nobody has
generated yet, confirmed it on Arch, and pointed out that the dependency
belongs in the comment: systemd-localed only does this when
/usr/bin/locale-gen and /etc/locale.gen are both present. Without them
set-locale still succeeds and writes /etc/locale.conf, and the locale is
never generated -- LANG then names something that falls back to C, with
nothing failing along the way.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01JMv63sA2aQLdMTiF2MF5LB
@sbelcl

sbelcl commented Sep 18, 2026

Copy link
Copy Markdown
Author

@linyiru This is the most useful review I've had — thank you for running it
rather than reading it.

The locale-gen dependency is now in the comment (5d7d06c). You are right
that it was load-bearing and unstated: without /usr/bin/locale-gen and
/etc/locale.gen, set-locale still succeeds, writes /etc/locale.conf, and
the locale is never generated — LANG then names something that falls back to
C with nothing failing on the way.

Yes please to the @modifier and Chinese-script PR. Both gaps are real and
both are mine: the picker shows $2 ($3) from omarchy-locale-list, and the
modifier is precisely the field that label drops. Your framing — append it only
where the label is not unique, so the other 307 rows stay short — is better than
appending it everywhere, which is what I would have done. Send it against
sbelcl:system-language and I will merge it into this PR.

One implementation note, since it decides where the fix goes. Three things
consume that list today: omarchy_language_labels in the setup form, the picker
in omarchy-menu-language, and a copy in my own plugin outside this tree. If
omarchy-locale-list grew a fourth field carrying the disambiguated label, all
three would get the fix and none would need to agree on how to build it — but
that changes the tool's contract, so it is your call which side of the line to
put it on. I am happy either way.

On the Chinese script hint: a table keyed by locale name is the only thing that
can work, as you say, since LC_IDENTIFICATION simply does not carry it. Worth
noting it is not only Chinese — sr_RS@latin vs sr_RS is the same problem
wearing a modifier, so the two fixes may share a mechanism even though only one
of them can be derived from the data.

The catalog-naming point lands outside this PR but I will act on it: I maintain
Slovenian and Russian packs keyed by language, and a bare zh catalog being
wrong for whichever half it is not written in is a trap I would have walked
into. Recorded.

The six-rows-for-Taiwan observation I am going to leave alone deliberately. The
list is glibc-complete on purpose — curating it means deciding whose language is
worth offering, and gum filter makes the long tail cost a few keystrokes
rather than a scroll.

@linyiru

linyiru commented Sep 30, 2026

Copy link
Copy Markdown
Contributor

Sent: sbelcl#1, against system-language.

It went the way you guessed. Both gaps are one qualifier slot fed from two sources, the modifier read off the locale name and a four-entry table for the written form LC_IDENTIFICATION cannot carry. I took the omarchy-locale-list side of the line you offered, and the PR says why: the rule is "append it only where the label is not unique", and uniqueness is not a property of a row, so a caller formatting one row cannot apply it. It also turned out to be a correctness fix and not only a readability one, which I had not spotted when I wrote the review: setup was matching the chosen label against a rebuilt one, so all ten modifier-bearing locales were unreachable there.

🤖 Generated with Claude Code

The setup form's prompts are tested against stubs for everything they
reach for -- gum, tzupdate, timedatectl -- except the language prompt,
which ran the real omarchy-locale-list and so read the host's
/usr/share/i18n. That is absent anywhere but Arch, where the list comes
back empty and the language assertions fail, and it is a list that moves
with glibc everywhere else.

Stub it like the rest. The assertions that matter are about the prompt,
not about which locales the box building it happens to ship, and pinning
the list is what lets them name a locale on purpose: the pair that only
an @modifier tells apart is the case worth testing, and asserting it
against the host would be asserting that glibc still ships sr_RS@latin.

$ROOT/bin was on PATH for that one command and comes back off.
omarchy-locale-list names a locale by its language and territory, and ten
of glibc's 327 UTF-8 locales share both with another. The difference is
the @modifier the label drops, so the setup form showed "Serbian
(Serbia)" on two rows, and matching the chosen label back against a
rebuilt one took the first row that matched: all ten modifier-bearing
locales were unreachable there, and picking Catalan could not reach
Valencian at all. The menu fared better only because it carries the
locale name as subtext, which is a name, not an answer.

Chinese is ambiguous for a different reason. All four of its locales call
their language "Chinese", and nothing on screen said which of Simplified
and Traditional a territory implies, so the user had to already know that
Taiwan and Hong Kong are Traditional while China and Singapore are not.

Both are one shape: the label drops a distinction the locale name keeps.
So both go in one qualifier slot -- "Serbian (Serbia, Latin)", "Chinese
(Taiwan, Traditional)" -- fed from the two places the distinction can
come from. The modifier is read off the name. The script cannot be read
off anything: LC_IDENTIFICATION has no script field, so those four are a
table, and it stays four entries long because no other language on the
list is written two ways.

A modifier is appended only where the label is shared, leaving the 313
rows that already name one locale as short as they were. Every
modifier-bearing locale glibc ships today does share its label, so today
the two rules pick the same rows; the test is the ambiguity rather than
the modifier so that a future locale which is the only one of its
language and territory keeps the shorter label.

The label is a fourth field rather than something each caller builds,
because uniqueness is not a property of a row: it depends on the rest of
the list, which the caller formatting one row does not have. Both callers
were already rebuilding the same label from fields 2 and 3, and the setup
form was matching the user's choice against a third rebuild of it.
Reading field 4 makes that lookup single-valued and hands the same
disambiguation to anything else that lists locales.

Measured on glibc 2.44: 327 rows before and after, fields 1 to 3
byte-for-byte unchanged, 14 labels qualified, and now 327 distinct
labels where there were 317.
@greptile-apps

greptile-apps Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[Medium risk] Adds language selection to setup and system menu.

The PR appears safe to merge; the remaining issue is a non-blocking provisioning-test coverage gap.

Findings

  1. P1 Selected locale remains ungenerated ▶
  2. P2 Locale application remains untested ▶

Summary

The PR adds a language picker to first-boot setup and the desktop menu. Provisioning now tries systemd-firstboot first and falls back to localectl when the selected locale is not installed.

  • The provisioning tests exercise that fallback, though they do not verify the resulting locale file or generated locale.
Diagram
%%{init: {'theme': 'neutral'}}%%
flowchart TD
  A[Owner selects language] --> B[Validate against glibc locale list]
  B --> C[systemd-firstboot sets locale]
  C -->|Locale not installed or command fails| D[localectl sets and generates locale]
  C -->|Success| E[Desktop login uses selected locale]
  D -->|Success| E
Loading

Reviews (3) · Last reviewed commit: "Say why the language fallback runs, and ..."

Comment on lines +852 to +853
systemd-firstboot --locale="$language" --force 2>&1 ||
localectl set-locale "LANG=$language" 2>&1 ||

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Selected locale remains ungenerated

If the owner selects a locale that has not already been generated, systemd-firstboot --locale can successfully write /etc/locale.conf without generating it. That success skips localectl, so the next login sets LANG to a locale glibc cannot load and the setup choice does not take effect. Generate the locale on the successful firstboot path too.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't happen: systemd-firstboot --locale refuses a locale that hasn't been generated, so the localectl fallback does run, and localectl generates it.

Measured in a booted Arch container (systemd-nspawn on a fresh pacstrap base), running this exact configure_language with an ungenerated de_DE.UTF-8:

systemd-firstboot: Locale de_DE.UTF-8 is not installed.
/etc/locale.conf:  LANG=de_DE.UTF-8
/etc/locale.gen:   de_DE.UTF-8 UTF-8   (uncommented)
locale -a:         de_DE.utf8

I first took this finding at face value and pushed 841a5bc to reorder the calls; that's reverted in d92975b. 8d81af0 adds the sentence the comment was missing — that firstboot's refusal is what hands over to localectl — and a test that pins it.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You’re right — with an ungenerated locale, systemd-firstboot --locale exits non-zero (Locale ... is not installed), so the || localectl set-locale ... fallback runs and generates/persists it. The measured de_DE.UTF-8 result and regression test confirm that the successful-firstboot path I was concerned about does not occur here. This finding is invalid; the updated comment now documents the handoff correctly.

Tip: You can customize Greptile's behavior for this repo with .greptile/rules.md and .greptile/config.json.

@@ -209,6 +227,58 @@ assert_status "$OMARCHY_FORM_BACK" "hostname prompt reports Esc as back"
assert_returned "hostname prompt survives Esc under set -e"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Locale application remains untested

These tests check that the prompt resolves a selected label, but never exercise configure_language with an ungenerated locale. They therefore pass even if setup records the locale name without generating it. Add a provisioning-path test that checks both the saved setting and locale generation.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Covered now by test/shell.d/provision-language-test.sh (8d81af0). It runs the real configure_language against stubs: systemd-firstboot alone for a generated locale, localectl when firstboot refuses an ungenerated one, a logged failure when neither can, and nothing for a locale glibc doesn't list. The real-system behaviour it stands in for is in the reply on omarchy-provision-owner.

sbelcl and others added 3 commits October 2, 2026 09:34
configure_language ran systemd-firstboot first and localectl only if that
failed. firstboot only writes /etc/locale.conf, and it does not fail, so
localectl -- the call that generates a locale, since systemd-localed is
built with locale-gen support -- never ran. Every language but the image's
own came out named in locale.conf and generated nowhere, and the session
fell back to C. The comment above it said the opposite.

localectl now goes first, the same call omarchy-menu-language makes.
systemd-firstboot stays as the fallback for a boot where localed cannot be
reached, and logs that the locale it recorded was not generated.

test/shell.d/provision-language-test.sh runs the real configure_language
against stubs: localectl alone for a known locale, firstboot only when it
fails, a logged failure when neither can, and nothing for a locale glibc
does not list. It fails on the previous order.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This reverts commit 841a5bc.

Its premise was wrong. It assumed systemd-firstboot --locale always
succeeds, so the localectl fallback -- the call that generates a locale --
never ran. Measured in a booted Arch container (systemd-nspawn, fresh
pacstrap base), the code before it did this with an ungenerated
de_DE.UTF-8:

  systemd-firstboot refused: "Locale de_DE.UTF-8 is not installed."
  localectl set-locale ran as the fallback
  /etc/locale.gen: de_DE.UTF-8 uncommented; locale -a: de_DE.utf8

So firstboot fails exactly when a locale has not been generated, and the
fallback generates it. The original order was correct; the reverted
commit's message, comment and fallback log line described a case that
does not happen.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The comment named localectl as the fallback and as what generates a new
locale, but not what makes the fallback run, which is the part a reader
needs: systemd-firstboot refuses a locale that has not been generated yet.
Without that sentence the order reads as a bug -- a review bot read it
that way, and so did the commit just reverted.

test/shell.d/provision-language-test.sh runs the real configure_language
against stubs: systemd-firstboot alone for a generated locale, localectl
when firstboot refuses an ungenerated one, a logged failure when neither
can, and nothing for a locale glibc does not list.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@seunghan91

Copy link
Copy Markdown

I checked the Korean path on 8d81af0. Arch Linux ARM, glibc 2.43, xdg-user-dirs 0.20, with ko_KR.UTF-8 compiled into a temp LOCPATH (no root).

Check en_US.UTF-8 ko_KR.UTF-8
omarchy-locale-list row — ko_KR.UTF-8 · Korean · South Korea · Korean (South Korea)
date Wed Oct 7 03:04:05 PM KST 2026 2026. 10. 07. (수) 15:04:05 KST
date '+%x %X' 10/07/2026 03:04:05 PM 2026년 10월 07일 15시 04분 05초
Setup path: home after the first xdg-user-dirs-update in the new locale — Downloads Pictures Videos and 다운로드 문서 비디오 사진 음악 프로젝트
…user-dirs.dirs — XDG_DOWNLOAD_DIR="$HOME/다운로드", XDG_PICTURES_DIR="$HOME/사진", XDG_VIDEOS_DIR="$HOME/비디오", …
Menu path: existing en_US user, then xdg-user-dirs-update under ko_KR all English unchanged, user-dirs.locale stays en_US

Korean comes through as a single unambiguous row, and dates follow the chosen locale. The setup path leaves two sets of folders: omarchy-provision-user (lines 106–115) creates ~/Downloads, ~/Pictures and ~/Videos and bookmarks them in GTK, but writes only TEMPLATES, PUBLICSHARE and DESKTOP to user-dirs.dirs, so the first xdg-user-dirs-update under ko_KR fills in the other keys with translated names and creates new folders. Screenshots (omarchy-capture-screenshot reads XDG_PICTURES_DIR) would then land in ~/사진, while the GTK bookmarks still point at ~/Pictures. Nothing in that code is Korean-specific, but I only measured ko_KR.

How I measured
localedef -i ko_KR -f UTF-8 $W/loc/ko_KR.UTF-8
localedef -i en_US -f UTF-8 $W/loc/en_US.UTF-8
export LOCPATH=$W/loc
TZ=Asia/Seoul LANG=ko_KR.UTF-8 date -d '2026-10-07 15:04:05'
TZ=Asia/Seoul LANG=ko_KR.UTF-8 date -d '2026-10-07 15:04:05' '+%x %X'
OMARCHY_I18N_PATH=/usr/share/i18n omarchy-locale-list | awk -F'\t' '$1 ~ /^ko_/'

# setup path: the provision-user steps under en_US (same result under C.UTF-8), then a login run under ko_KR
H=$W/h1; mkdir -p $H/Downloads $H/Pictures $H/Videos
for k in TEMPLATES PUBLICSHARE DESKTOP; do
  env -i PATH=/usr/bin HOME=$H LOCPATH=$W/loc LANG=en_US.UTF-8 xdg-user-dirs-update --set $k "$H"
done
env -i PATH=/usr/bin HOME=$H LOCPATH=$W/loc LANG=ko_KR.UTF-8 xdg-user-dirs-update
ls $H; cat $H/.config/user-dirs.dirs

# menu path: full run under en_US, then ko_KR
H=$W/h2; mkdir -p $H
env -i PATH=/usr/bin HOME=$H LOCPATH=$W/loc LANG=en_US.UTF-8 xdg-user-dirs-update
env -i PATH=/usr/bin HOME=$H LOCPATH=$W/loc LANG=ko_KR.UTF-8 xdg-user-dirs-update

I called xdg-user-dirs-update directly instead of logging in; xdg-user-dirs 0.20 ships a user service and an autostart entry that run it at session start. I did not exercise systemd-firstboot/localectl generating ko_KR (needs root), and did not look at the Omarchy bar clock.

@omarchybot omarchybot removed the enhancement New feature or request label Oct 13, 2026
@jandrusk

Copy link
Copy Markdown

The locale-list / localectl approach looks solid (and the ko_KR check is nice). Needs a rebase — CONFLICTING against current quattro — then this should be ready.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants