Skip to content

Conversation

@eagleoflqj
Copy link
Member

Unify the behavior with fcitx/fcitx5-kkc@8da42fb
The benefit is more dictionaries could be added at build time.
This is a breaking change for downstream packagers that explicit set SKK_DEFAULT_PATH.

CMakeLists.txt Outdated

set(SKK_DEFAULT_PATH "/usr/share/skk/SKK-JISYO.L" CACHE STRING "Default path of SKK")
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/")
if(NOT "${SKK_DEFAULT_PATH}" MATCHES "/$")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just make the check to be endswith SKK-JISYO.L, actually I suggest you create new string, e.g. SKK_PATH

if user override SKK_DEFAULT_PATH, then give them an error and indicate them use new variable name instead.

@eagleoflqj eagleoflqj changed the title change SKK_DEFAULT_PATH to a directory replace SKK_DEFAULT_PATH with SKK_PATH Dec 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants