Skip to content

Commit 00bab0a

Browse files
committed
data: Enable to configure kasumi-unicode in gschema
kasumi-unicode can be generated from kasumi source codes with anthy-unicode but not anthy. kasumi-unicode can save the dicts in XDG config dir but not $HOME/.anthy % ./configure --with-kasumi-exec=/usr/bin/kasumi-unicode
1 parent c744be6 commit 00bab0a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

data/Makefile.am

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# ibus-anthy - The Anthy engine for IBus
44
#
5-
# Copyright (c) 2010-2018 Takao Fujiwara <[email protected]>
5+
# Copyright (c) 2010-2021 Takao Fujiwara <[email protected]>
66
# Copyright (c) 2010-2018 Red Hat, Inc.
77
#
88
# This program is free software; you can redistribute it and/or modify
@@ -49,8 +49,10 @@ $(metainfo_DATA): $(metainfo_in_files) Makefile
4949
$(AM_V_GEN)$(MSGFMT) --xml --template $< -d $(top_srcdir)/po -o $@
5050

5151
$(schemas_DATA): $(schemas_in_files)
52+
KASUMI_EXEC_BASENAME=`basename $(KASUMI_EXEC_FILE)`; \
5253
$(SED) -e "s|\@ANTHY_ZIPCODE_FILE\@|$(ANTHY_ZIPCODE_FILE)|g" \
5354
-e "s|\@KASUMI_EXEC_FILE\@|$(KASUMI_EXEC_FILE)|g" \
55+
-e "s|\@KASUMI_EXEC_BASENAME\@|$$KASUMI_EXEC_BASENAME|g" \
5456
-e "s|\@KASUMI_ICON_FILE\@|$(KASUMI_ICON_FILE)|g" \
5557
-e "s|\@ON_OFF_KEYS\@|$(ON_OFF_KEYS)|g" \
5658
-e "s|\@pkgdatadir\@|$(pkgdatadir)|g" \

data/org.freedesktop.ibus.engine.anthy.gschema.xml.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,12 @@
108108
<description></description>
109109
</key>
110110
<key name="dict-admin-command" type="as">
111-
<default>['@KASUMI_EXEC_FILE@', 'kasumi']</default>
111+
<default>['@KASUMI_EXEC_FILE@', '@KASUMI_EXEC_BASENAME@']</default>
112112
<summary>Dictionary Administration Command</summary>
113113
<description></description>
114114
</key>
115115
<key name="add-word-command" type="as">
116-
<default>['@KASUMI_EXEC_FILE@', 'kasumi', '-a']</default>
116+
<default>['@KASUMI_EXEC_FILE@', '@KASUMI_EXEC_BASENAME@', '-a']</default>
117117
<summary>Add Word Command</summary>
118118
<description></description>
119119
</key>

0 commit comments

Comments
 (0)