Skip to content

Commit

Permalink
Fix KF5 linking error
Browse files Browse the repository at this point in the history
  • Loading branch information
alex1701c committed Oct 13, 2024
1 parent 7bc6779 commit 3c2231f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/core/Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ namespace
struct Config {
// General config keys
constexpr static const auto ConfigFileName = "emojirunnerrc";
constexpr static const auto RelativeConfigFolder = "/.config/krunnerplugins/";
constexpr static QLatin1String SharedEmojiFileName{"emojirunner/emojis.json"};
constexpr static const auto RootGroup = "Config";
constexpr static const auto GlobalSearch = "globalSearch";
constexpr static const auto PasteAction = "pasteAction";
Expand All @@ -32,7 +30,7 @@ struct Config {
constexpr static const auto SmileysEmotionsCategory = "Smileys & Emotion";
constexpr static const auto DisabledCategories = "disabledCategories";

static QString emojiFilePath()
static inline QString emojiFilePath()
{
return QDir::homePath() + QLatin1String("/.local/share/emojirunner/customemojis.json");
}
Expand Down
2 changes: 1 addition & 1 deletion src/core/FileReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ FileReader::FileReader(const KConfigGroup &config)
QList<EmojiCategory> FileReader::getEmojiCategories(bool getAllEmojis) const
{
// Emojis for user level install
QString emojisFilePath = QStandardPaths::locate(QStandardPaths::GenericDataLocation, Config::SharedEmojiFileName, QStandardPaths::LocateFile);
QString emojisFilePath = QStandardPaths::locate(QStandardPaths::GenericDataLocation, QStringLiteral("emojirunner/emojis.json"), QStandardPaths::LocateFile);
QFile emojisFile(emojisFilePath);
QMap<QString, EmojiCategory> preconfiguredEmojis;
if (emojisFile.exists() && emojisFile.open(QIODevice::ReadOnly)) {
Expand Down

0 comments on commit 3c2231f

Please sign in to comment.