[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Adding new language/locale to system via a graphical interface





On തി, ജനു 3 2022 at 12:09:10 രാവിലെ +0200 +0200, Peter Pentchev <roam@ringlet.net> wrote:
On Mon, Jan 03, 2022 at 02:59:26AM +0530, Pirate Praveen wrote:
 Hi,

I'm looking for a way to add a new locale/language to system from gnome (think about gnome on mobile like Purism Librem 5 or Pine Phone). I can do that from a terminal by running dpkg-reconfigure locales but want to provide an easier option to users. Is there a way to force gtk interface of debconf and launch it from graphical interface? In Ubuntu, there is separate add
 language tool which can add new languages.

The debconf(7) manual page suggests that setting DEBIAN_FRONTEND=gnome
after installing the libgtk3-perl package ought to work, and it seems to
work for me:

  sudo env DEBIAN_FRONTEND=gnome dpkg-reconfigure locales

...brings up a GTK+ interface.


Thanks! I need to run xhost + to be able to launch this. Is there another way to lauch this graphically without having to run xhost +. May be something using policykit?

I remember there used to be a gksu or gksudo but can't find this now

apt-file find bin/gksu
apt-file find bin/gksudo

pkexec env DEBIAN_FRONTEND=gnome /usr/sbin/dpkg-reconfigure locales
Unable to init server: Could not connect: Connection refused

(dpkg-reconfigure:159177): Gtk-WARNING **: 15:28:06.343: cannot open display:
debconf: unable to initialize frontend: Gnome
debconf: (DISPLAY problem?)
debconf: falling back to frontend: Dialog


G'luck,
Peter

--
Peter Pentchev  roam@ringlet.net roam@debian.org pp@storpool.com
PGP key:        http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint 2EE7 A7A5 17FC 124C F115  C354 651E EFB0 2527 DF13



Reply to: