Skip to content

Commit 82927a2

Browse files
committed
change SKK_DEFAULT_PATH to a directory
1 parent e4ce534 commit 82927a2

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")
2121

2222
include("${FCITX_INSTALL_CMAKECONFIG_DIR}/Fcitx5Utils/Fcitx5CompilerSettings.cmake")
2323

24-
set(SKK_DEFAULT_PATH "/usr/share/skk/SKK-JISYO.L" CACHE STRING "Default path of SKK")
24+
set(SKK_DEFAULT_PATH "/usr/share/skk/" CACHE STRING "Default path of SKK directory that has SKK-JISYO.L, could start with \$XDG_DATA_DIRS/")
25+
if(NOT "${SKK_DEFAULT_PATH}" MATCHES "/$")
26+
message(FATAL_ERROR "SKK_DEFAULT_PATH must be a directory ending with a slash")
27+
endif()
2528

2629
include(GNUInstallDirs)
2730

src/dictionary_list.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
type=file,file=$FCITX_CONFIG_DIR/skk/user.dict,mode=readwrite
2-
type=file,file=@SKK_DEFAULT_PATH@,mode=readonly
2+
type=file,file=@SKK_DEFAULT_PATH@SKK-JISYO.L,mode=readonly

0 commit comments

Comments
 (0)