Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(318)

Unified Diff: ibus.conf

Issue 3413002: Revert "Move post-stop script for ibus daemons from ibus.conf to ui.conf." (Closed) Base URL: ssh://git@chromiumos-git//init.git
Patch Set: Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui.conf » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ibus.conf
diff --git a/ibus.conf b/ibus.conf
new file mode 100644
index 0000000000000000000000000000000000000000..2af29123c4d7d5c183d6cb04f8c66a2944f0dd91
--- /dev/null
+++ b/ibus.conf
@@ -0,0 +1,28 @@
+# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+description "Run ibus-daemon and ibus-memconf"
+author "chromium-os-dev@googlegroups.com"
+
+stop on stopping ui
+
+# ibus-daemon creates a temporary file in /home/chronos,
+# not in /home/chronos/user.
+env HOME=/home/chronos
+
+post-stop script
+
+set +e
+. /sbin/killers
+
+# Ensure ibus-daemon and sub-processes are terminated. Note that these
+# processes are not mananged by Upstart.
+term_process "(candidate_w.*|ibus-[dem].*)"
+
+# Since Chrome OS regenerates /var/lib/dbus/machine-id every time when the OS
+# starts, ibus-daemon creates a new file in ${HOME}/.config/ibus/bus/ every time
+# when it starts. It's better to remove them when ibus-daemon is terminated.
+rm -f ${HOME}/.config/ibus/bus/*
+
+end script
« no previous file with comments | « no previous file | ui.conf » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698