File scim-bridge-fixes-x11-frontend-launch-order.patch of Package scim-bridge
Index: scim-bridge-0.4.15/agent/scim-bridge-agent.cpp
===================================================================
--- scim-bridge-0.4.15.orig/agent/scim-bridge-agent.cpp
+++ scim-bridge-0.4.15/agent/scim-bridge-agent.cpp
@@ -455,12 +455,6 @@ retval_t ScimBridgeAgentImpl::initialize
return RETVAL_FAILED;
}
- {
- scim_bridge_pdebugln (8, "Launching a SCIM daemon with x11 FrontEnd...");
- char *new_argv [] = {"--no-stay","-d", NULL};
- scim_launch (true, "socket", "socket", "x11", new_argv);
- }
-
// If there is no socket frontend running, launch one.
if (!is_socket_frontend_ready ()) {
scim_bridge_pdebugln (8, "Launching a SCIM daemon with Socket FrontEnd...");
@@ -480,7 +474,13 @@ retval_t ScimBridgeAgentImpl::initialize
}
}
}
-
+
+ {
+ scim_bridge_pdebugln (8, "Launching a SCIM daemon with x11 FrontEnd...");
+ char *new_argv [] = {"--no-stay","-d", NULL};
+ scim_launch (true, "socket", "socket", "x11", new_argv);
+ }
+
// load config module
scim_bridge_pdebugln (2, "Loading Config module...: socket");
scim_config_module = new ConfigModule ("socket");