Bug 264886 - System Tray Settings Extra Items Keyboard Layout checkbox creates redundant tray icon
Summary: System Tray Settings Extra Items Keyboard Layout checkbox creates redundant t...
Status: RESOLVED FIXED
Alias: None
Product: kxkb
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR minor
Target Milestone: ---
Assignee: Andriy Rysin
URL:
Keywords:
: 288052 304091 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-01-30 20:53 UTC by Robert Simmons
Modified: 2020-05-24 17:19 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
snapshot of system tray (81.89 KB, image/png)
2011-01-30 20:53 UTC, Robert Simmons
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Simmons 2011-01-30 20:53:24 UTC
Created attachment 56675 [details]
snapshot of system tray

Version:           unspecified (using KDE 4.6.0) 
OS:                Linux

When you add an additional keyboard layout in "K > System Settings > Input Devices > Keyboard > Layouts" a tray icon is added that shows the current layout.  If you right click on the system tray and select "System Tray Settings > Display > Extra Items > Keyboard Layout" you get another identical but slightly smaller tray icon that does exactly the same thing as the first.  Both can coexist in the tray at the same time.

Reproducible: Always

Steps to Reproduce:
In K > System Settings > Input Devices > Keyboard > Layouts:
add a layout
then select System Tray Settings > Display > Extra Items > Keyboard Layout

Actual Results:  
Two tray icons for keyboard layout that do exactly the same thing.

Expected Results:  
"System Tray Settings > Display > Extra Items > Keyboard Layout" should show or hide the icon.  The default should be no icon (it is).  When you add a layout the icon should appear and the "System Tray Settings > Display > Extra Items > Keyboard Layout" checkbox should automatically be checked.  Then if you check or uncheck it, the one icon should appear or disappear.

I'm running Kubuntu 10.10 with KDE 4.6.0
default widget style.
Acer Aspire 3680-2633
Comment 1 Magnus Kessler 2011-02-11 21:40:53 UTC
There are apparently two different, independent ways to put the keyboard layout icon into the system tray: the time-honoured setting in the keyboard control module, and the new one built into the system tray extra items.

As a workaround, you should use only one of them; either turn off the extra item or do not activate the "Show layout indicator" setting in the "Layouts" tab of the control module.
Comment 2 Robert Simmons 2011-02-13 04:44:23 UTC
That's the workaround that I do, but ultimately both places should control the same tray icon.  Also, can you change this to confirmed?
Comment 3 Robert Simmons 2011-05-22 21:33:52 UTC
This bug still exists after upgrade to Kubuntu 11.04 and KDE 4.6.3
Comment 4 Robert Simmons 2011-08-06 19:11:05 UTC
I am still experiencing this problem in KDE 4.7.0 in Kubuntu 11.04

Also, after the change in the theme of the system tray icons, the "old" way now has a different theme tray icon than the "new" way.  So, if you add a layout in system settings you get a second tray icon with the older version of the tray icon theme.  Adding it through the system tray settings still creates a second icon, but now it is also a different color, not just a different size than the first.
Comment 5 Robert Simmons 2011-10-20 05:03:40 UTC
This still exists in KDE 4.7.2
Comment 6 Andriy Rysin 2011-12-03 01:19:56 UTC
*** Bug 288052 has been marked as a duplicate of this bug. ***
Comment 7 Andriy Rysin 2011-12-08 15:01:24 UTC
*** Bug 288484 has been marked as a duplicate of this bug. ***
Comment 8 rockonthemoonfm 2012-10-30 11:20:54 UTC
this bug looks like fixed in kde 4.10
Comment 9 Robert Simmons 2012-10-30 15:20:24 UTC
This still exists in KDE stable 4.9.2.
Comment 10 rockonthemoonfm 2013-06-26 08:02:43 UTC
absolutely confirmed in 4.10.4.
wait few days for a confirmation in 4.11..
Comment 11 rockonthemoonfm 2013-07-01 10:24:58 UTC
so, this bug is CONFIRMED in 4.11 beta 2. time to fix it once for this LTS workspace release.

it was reported in 2011 and reproducible since then. why isn't it marked as CONFIRMED?
beside this USABILITY bug, actual bugtracking system should implement a way to allow BUG REPORTERS to mark a bug as confirmed.
Comment 12 Andriy Rysin 2013-07-04 03:07:47 UTC
Well, as Magnus pointed above there are two ways to have indicator: applet and system tray icon (controlled from system settings). The idea was that if somebody does not like the system tray icon he would turn it of in the settings and use the applet instead (which you can put in many more places, e.g. on desktop etc).

I asked our plasma developers about it a while ago but unfortunately there's not much control on the applet you can get from the code. Most of the control over the applet belongs to the user so I don't see an easy way to fix it in the code.
The only way I see to fix it is to remove the applet altogether but I am not sure that's what we want.

I've changed it to confirmed but so far I can only see it changed to WONFIX later unless somebody steps in and provides the solution.
Comment 13 Robert Simmons 2013-07-04 08:00:28 UTC
Have both routines control the same tray icon?
Comment 14 Andriy Rysin 2013-07-04 13:03:13 UTC
I am not sure what you mean by "both routines". There's keyboard layout indicator applet which is installed in the system and then only user can decide whether to show it and where. The keyboard daemon or settings have no control over it.
And there's system tray icon, which is controlled by keyboard daemon and system settings.
You probably don't want to use both but it's up to the user to decide which one to show.
Comment 15 Robert Simmons 2013-07-04 19:02:59 UTC
Just to play devil's advocate here: from a developer's perspective it may make complete sense to you.  But from a user's perspective, its nonsense to have two identical icons that do the same thing in the system tray.  Plus, they're slightly different sizes, so its also ugly.

Get rid of the applet, or don't allow it to have a system tray icon.  Or build the applet's functionality into the keyboard daemon, and then get rid of the applet.
Comment 16 Andriy Rysin 2013-07-05 18:08:26 UTC
Robert, it does not make sense to me as a developer to have both indicators either. But I can't remove either easily as people are probably using it. I must say I don't install Linux often but I installed several systems lately and I never had 2 icons in layouts for some reason (it was at least in 3 different distros: Fedora, OpenSuse and Mageia), when I configure layouts I always get only one indicator - system tray.

I can't remove system tray as the keyboard daemon can't control the applet from it - so we either have to remove the applet or leave it as it is (and potentially fix the distro that's showing applet automatically). 

Anyhow I've created a blog post with explanation and little poll, let's see what people say/vote for and then we can decide.

I've added a blog post about this and little poll to check user's opinions http://codersgrumble.blogspot.com/2013/07/keyboard-layout-indicator-widget-or.html
Comment 17 Jekyll Wu 2013-07-19 07:27:25 UTC
*** Bug 304091 has been marked as a duplicate of this bug. ***
Comment 18 Konrad Materka 2020-05-24 16:40:40 UTC
Is this still an issue?
Comment 19 ariasuni 2020-05-24 17:05:54 UTC
I could reproduce in the past, but not now. It seems like the two indicators have been merged?
Comment 20 Konrad Materka 2020-05-24 17:19:27 UTC
Probably the Keyboard Layout applet was removed, I cannot find it anymore.
Marking as fixed, feel free to reopen if you find this applet - there is no point in having this indicator in two places.