alex1701c / EmojiRunner

Search for emojis in Krunner and copy/paste them
GNU General Public License v3.0
50 stars 7 forks source link

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

Closed Jiogo18 closed 9 months ago

Jiogo18 commented 9 months ago

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. https://github.com/alex1701c/EmojiRunner/blob/5aaa24cfad7e7cee7553c532e3b6c77d1ae9798c/src/core/Config.h#L49-L50

Here, KDE_INSTALL_DATADIR is /usr/local/share in my case. https://github.com/alex1701c/EmojiRunner/blob/5aaa24cfad7e7cee7553c532e3b6c77d1ae9798c/src/CMakeLists.txt#L32


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.