aboutsummaryrefslogtreecommitdiff
path: root/src/menubar.vala
diff options
context:
space:
mode:
Diffstat (limited to 'src/menubar.vala')
-rw-r--r--src/menubar.vala12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/menubar.vala b/src/menubar.vala
index a417a03..87e0bf7 100644
--- a/src/menubar.vala
+++ b/src/menubar.vala
@@ -536,9 +536,17 @@ public class MenuBar : Gtk.MenuBar
try
{
string[] argv;
+ string cmd;
int onboard_stdout_fd;
-
- Shell.parse_argv ("onboard --xid", out argv);
+ var layout = AGSettings.get_string (AGSettings.KEY_ONSCREEN_KEYBOARD_LAYOUT);
+ var file = File.new_for_path ("/usr/share/onboard/layouts/%s.onboard".printf (layout));
+ if (file.query_exists ()) {
+ cmd = "onboard --xid --layout='/usr/share/onboard/layouts/%s.onboard'".printf (layout);
+ }
+ else {
+ cmd = "onboard --xid";
+ }
+ Shell.parse_argv (cmd, out argv);
Process.spawn_async_with_pipes (null,
argv,
null,