--- Begin Message ---
- To: submit@bugs.debian.org
- Subject: Stop pauses during startup when scim isn't installed
- From: Jonathan Riddell <jriddell@ubuntu.com>
- Date: Fri, 19 Sep 2008 13:54:57 +0100
- Message-id: <20080919125457.GD29856@muse.19inch.net>
Package: scim-bridge
Qt applications take a long time to start up when scim isn't installed
and scim-bridge-qt4 is. This patch stop this.
Also attached is another patch to stop unnecessary console output.
Jonathan
#! /bin/sh /usr/share/dpatch/dpatch-run
## 50_check_scim_binary.dpatch by <roderick.greening@gmail.com>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Fixes 10-20s delay in launching apps when scim-bridge-client(s) installed but scim is not
@DPATCH@
diff -urNad scim-bridge-0.4.14~/client-common/scim-bridge-client.c scim-bridge-0.4.14/client-common/scim-bridge-client.c
--- scim-bridge-0.4.14~/client-common/scim-bridge-client.c 2008-09-15 11:43:48.000000000 -0230
+++ scim-bridge-0.4.14/client-common/scim-bridge-client.c 2008-09-15 12:00:14.000000000 -0230
@@ -1015,6 +1015,12 @@
scim_bridge_perrorln ("The messenger has already been opend");
return RETVAL_SUCCEEDED;
}
+
+ /* This is a quick fix. "which scim" should probably be defined somewhere instead of coded like below - RG */
+ if (system ("which scim") != 0) {
+ scim_bridge_pdebugln (8, "There is no SCIM binary");
+ return RETVAL_FAILED;
+ }
int i;
for (i = 0; i < 10; ++i) {
#! /bin/sh /usr/share/dpatch/dpatch-run
## 51_quiet.dpatch by Jonathan Riddell
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Fixes 10-20s delay in launching apps when scim-bridge-client(s) installed but scim is not
@DPATCH@
diff -urNad scim-bridge-0.4.14~/client-common/scim-bridge-client-imcontext-qt.cpp scim-bridge-0.4.14/client-common/scim-bridge-client-imcontext-qt.cpp
--- scim-bridge-0.4.14~client-qt/client-qt/qt4/scim-bridge-client-imcontext-qt.cpp 2007-07-07 03:30:10.000000000 +0100
+++ scim-bridge-0.4.14client-qt/client-qt/qt4/scim-bridge-client-imcontext-qt.cpp 2008-09-19 13:24:48.000000000 +0100
@@ -173,7 +173,7 @@
#endif
if (!scim_bridge_client_is_messenger_opened ()) {
- scim_bridge_perrorln ("The messenger is now down");
+ scim_bridge_pdebugln (1, "The messenger is now down");
} else if (scim_bridge_client_register_imcontext (this)) {
scim_bridge_perrorln ("Failed to register the IMContext");
} else {
@@ -189,7 +189,7 @@
if (this == focused_imcontext) focus_out ();
if (!scim_bridge_client_is_messenger_opened ()) {
- scim_bridge_perrorln ("The messenger is now down");
+ scim_bridge_pdebugln (1, "The messenger is now down");
} else if (scim_bridge_client_deregister_imcontext (this)) {
scim_bridge_perrorln ("Failed to deregister an IMContext");
} else {
--- End Message ---