Skip to content

Commit 1fb758a

Browse files
authored
deduplicate xkb mo (#41)
1 parent ec18275 commit 1fb758a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/xkeyboard-config.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,7 @@ class XKeyboardConfigBuilder(MesonBuilder):
44
def pre_package(self):
55
# Remove X11 to avoid unpack symlink failure on Windows (f5h).
66
ensure('rm', ['-rf', f'{self.dest_dir}/usr/share/X11'])
7+
# Remove xkeyboard-config-2.mo which is just a duplicate and not registered by fcitx5.
8+
ensure('find', [self.dest_dir, '-name', 'xkeyboard-config-2.mo', '-delete'])
79

810
XKeyboardConfigBuilder('xkeyboard-config').exec()

0 commit comments

Comments
 (0)