H
H
HeroFromEarth2016-08-29 09:37:23
System administration
HeroFromEarth, 2016-08-29 09:37:23

How to display keyboard layout indicator for all users in CentOS 6?

There was a question regarding setting up a GNOME environment for all users on the system. Including how to put the keyboard layout indicator on the panel for all users?
I found out that when pulling the applet through the graphical interface, a directory with the applet's XML configuration .gconf/apps/panel/applets/applet_0/%gconf.xml is formed in the user's home directory.
Next, I found the default configuration file /etc/gconf/gconf.xml.defaults/%gconf-tree.xml, which describes the rest of the applets. Using a simple copy-paste, I copied the config from the user directory to the general config, but the applet is not displayed for users, although in the gconf user configuration it creates a directory for the applet.
When an applet is placed on a panel, exactly the same directory is created (with a different name, of course) and the applet is displayed. What am I doing wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Spheniscus, 2016-08-29
@Spheniscus

New users can create an environment by placing the .gconf/apps/panel/applets/applet_0/%gconf.xml directory in /etc/skel/ .
And for those already created, create a script that will go through all the hamsters and copy the file to the right place.
Like this - for i in `ls /home`; do cp file /home/$i/path/to/dir/file && chown $i:$i /home/$i/path/to/dir/file; done

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question