From: tokyo4j Date: Wed, 2 Apr 2025 17:19:04 +0000 (+0900) Subject: desktop-entry: localize application names X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=fdc8537eee1ce7af3d83f7df0291f43e2675bf65;p=proto%2Flabwc.git desktop-entry: localize application names This commit localizes application names in the window switcher set via 'desktop_entry_name' or '%n' specifier. --- diff --git a/src/desktop-entry.c b/src/desktop-entry.c index f28ce9cb..05e0168a 100644 --- a/src/desktop-entry.c +++ b/src/desktop-entry.c @@ -81,7 +81,12 @@ desktop_entry_init(struct server *server) sfdo_icon_ctx_set_log_handler( sfdo->icon_ctx, level, log_handler, "sfdo-icon"); - sfdo->desktop_db = sfdo_desktop_db_load(sfdo->desktop_ctx, NULL); + char *locale = NULL; +#if HAVE_NLS + locale = setlocale(LC_ALL, ""); +#endif + + sfdo->desktop_db = sfdo_desktop_db_load(sfdo->desktop_ctx, locale); if (!sfdo->desktop_db) { goto err_desktop_db; }