alex1701c/EmojiRunner

Installation install emojis.json in /usr/local/share/emojirunner/

Closed this issue · 0 comments

Hi!

I first installed Emoji Runner from plasma5-runners-emoji a couple of months ago without really using it. It is now out of date, so I uninstalled it and came here to build it.

I tried Option A, it installed, but I faced something similar to #7.
I tried Option C without success, each time I had no emojis.
Option C output:

[100%] Built target kcm_krunner_emojirunner
Install the project...
-- Install configuration: "Release"
-- Up-to-date: /usr/lib/qt/plugins/kf5/krunner/emojirunner.so
-- Up-to-date: /usr/lib/qt/plugins/kcm_krunner_emojirunner.so
-- Installing: /usr/local/share/emojirunner/emojis.json
Installation finished!

I noticed that it installed emojis.json in /usr/local/share/emojirunner,
but Emoji Runner only check in ~/.local/share/emojirunner and /usr/share/emojirunner.

const QString Config::LocalEmojiFilePath = QDir::homePath() + "/.local/share/emojirunner/emojis.json";
const QString Config::GlobalEmojiFilePath = QStringLiteral("/usr/share/emojirunner/emojis.json");

Here, KDE_INSTALL_DATADIR is /usr/local/share in my case.

install(FILES core/emojis.json DESTINATION ${KDE_INSTALL_DATADIR}/emojirunner/)


OS: Garuda Linux
KDE Plasma Version: 5.27.10
KDE Frameworks: 5.115.0
Qt: 5.15.2
Kernel: 6.7.6-zen1-1-zen


A solution would be to search in /usr/local/share.

I worked on a fix last week, I will do a PR soon.