Keyboard layout indicator in GNOME 3 Classic (fallback) mode (Ubuntu 11.10)

Asked by Bob Bib

How can I make keyboard indicator to show current keyboard layout in Ubuntu 11.10 running GNOME 3 Classic (fallback) mode?
It shows only a keyboard icon, but in Unity it shows a keboard icon with language code near it.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Bob Bib
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1
Revision history for this message
Bob Bib (bobbib) said :
#2

As for now, it seems impossible to do that without some kind of hacking; therefore, it's a bug)

Revision history for this message
fastinetserver (fastinetserver) said :
#3

I have Ubuntu 11.10
Solution from the link below didn't work
http://www.omgubuntu.co.uk/2010/11/ubuntu-mono-light-language-flag-icons/

Thank you guys for all the great stuff, but please fix this really annoying bug (considering the huge number of ppl who use more than one layout).

Looking forward to have keyboard indicator properly functioning as in great gnome2 days.

Revision history for this message
Fadec Mirror (ffadec) said :
#4

Red Stop circle instead of flags.

Red Stop circle in Gnome Classic Session only, but in Unity flags appear and behave properly.

Every duty payed:
~/.icons/flags

and

dconf-editor, org -> gnome -> libgnomekbd -> indicator.
Checkbox show-flags.

Or by command:
gsettings set org.gnome.libgnomekbd.indicator show-flags true

For Unity
Rename neccessary flags into ru-symbolic.png и us-symbolic.png.
Create /usr/share/pixmaps/flags and put flags there.

For Gnome 3 Classic
??? What paths? What names? What keys should be checkboxed?

Revision history for this message
Bob Bib (bobbib) said :
#5

Problem seems to be fixed in the current development release (Precise Beta 1):
1) if you have only a "Notification Area" applet, it shows just a keyboard icon;
2) if you add the "Indicator Applet Complete", it'll show a keyboard icon with the name of the current layout (2-letter, e. g. "en").

Revision history for this message
Fadec Mirror (ffadec) said :
#6

It is NOT solved, please change its state.

Bug isn't solved for Oneiric (11.10) release.

As far as I guess Precise Beta 1 is 12.04 LTS, but what about 11.10 Gnome Classic (Gnome 3.2.1)?

What is that path/names that it looks for flag images, where to put them, how to name?

Revision history for this message
Bob Bib (bobbib) said :
#7

ffadec,

1) problem was caused by indicator-applet's incompatibility with GNOME 3, so it was missing in Oneiric (11.10):
https://launchpad.net/ubuntu/+source/indicator-applet
https://bugs.launchpad.net/indicator-applet/+bug/724369
fortunately, it was ported to GNOME 3 and will come back in Precise (12.04 LTS);
if you want it in Oneiric (11.10), you can follow the article:
http://www.webupd8.org/2011/11/indicator-applet-ported-to-gnome-3-can.html

2) I didn't asked for flags, but for short layout names;
maybe, "org.gnome.libgnomekbd.indicator show-flags" key still controls flags indication -- please ask someone else (have you tried to request a flag functionality in indicator-applet ?).

Revision history for this message
Fadec Mirror (ffadec) said :
#8

I upgraded to 12.04 and confirm: keyboard indicator flags work properly.

Thank you a lot for the given backport solution (http://www.webupd8.org/2011/11/indicator-applet-ported-to-gnome-3-can.html). In 12.04 it doesn't let put the kbd-applet (none of in list), but others persisting are excellent! Proposed there 'zukitwo-theme-all' crashed my gnome-panel triple... ;7

Revision history for this message
Bob Bib (bobbib) said :
#9

Some more investigation details.
In Oneiric (11.10) there's no indicator-applet, so that "weak" keyboard indicator is provided by "Notification Area" applet.
Notification area seems to be provided by "gnome-panel" package ("libnotification-area-applet.so" shared library):
http://packages.ubuntu.com/oneiric/i386/gnome-panel/filelist

---

> In 12.04 it doesn't let put the kbd-applet (none of in list), but others persisting are excellent!

ffadec, what do you mean?

Revision history for this message
Fadec Mirror (ffadec) said :
#10

I mean there is no kbd-applet, but other applets in list work excellent.