summaryrefslogtreecommitdiff
path: root/japanese/mozc-server/files/extra-patch-src-unix_fcitx_fcitx_mozc.cc
blob: 50a4537472c721392e9208749efa2dfd97736d30 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- src/unix/fcitx/fcitx_mozc.cc.orig	2016-05-14 21:54:58.149355000 +0900
+++ src/unix/fcitx/fcitx_mozc.cc	2016-05-14 21:54:58.170065000 +0900
@@ -440,6 +440,8 @@
 boolean ToolMenuAction(struct _FcitxUIMenu *menu, int index)
 {
     string args;
+    size_t pid = 0;
+
     switch(index) {
         case 0:
             args = "--mode=config_dialog";
@@ -460,7 +462,8 @@
             args = "--mode=about_dialog";
             break;
     }
-    mozc::Process::SpawnMozcProcess("mozc_tool", args);
+    
+    mozc::Process::SpawnProcess(mozc::FileUtil::JoinPath(mozc::SystemUtil::GetToolPath(), "mozc_tool"), args, &pid);
     return true;
 }