<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
I need to detect if keyboard layout indicator applet is running and
show the keyboard layout button in the screen lock dialog (bug <a
name="b276692" href="https://bugs.kde.org/show_bug.cgi?id=276692">276692</a>).
Currently it only checks if "indicator" option is on which turns on
systray icon but user can bypass that option by just dragging applet
on the screen.<br>
<br>
I did a quick research and I see two ways to solve this in
keyboard_layout_widget (embedded component used in lockdlg):<br>
1) link plasma libs and do something like (in pseudo-code)<br>
foreach(containment, new Corona()->containments()) {<br>
foreach(applet, containment->applets()) {<br>
if( applet->pluginName() == "..." ) {<br>
// show indicator<br>
}<br>
}<br>
}<br>
<br>
2) make keyboard layout applet exposes some dbus to make it
detectable when running (feels a bit too "heavy")<br>
<br>
It felt like there must be a way currently to use dbus on plasma to
query running applets (which would the easiest way to implement what
I need) but could not find anything like that in
org.kde.plasma-desktop<br>
<br>
I would appreciate any help on this<br>
Thanks<br>
Andriy<br>
</body>
</html>