mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2025-12-18 12:40:06 +08:00
try fixing linux emoji issue
This commit is contained in:
parent
93c794d236
commit
cb30dbadc9
@ -24,4 +24,7 @@
|
||||
<file alias="Tun.png">public/Tun.png</file>
|
||||
<file>dashboard-notice.html</file>
|
||||
</qresource>
|
||||
<qresource prefix="/font">
|
||||
<file alias="notoEmoji">font/NotoColorEmoji.ttf</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
||||
BIN
res/font/NotoColorEmoji.ttf
Normal file
BIN
res/font/NotoColorEmoji.ttf
Normal file
Binary file not shown.
@ -21,6 +21,7 @@
|
||||
#endif
|
||||
#ifdef Q_OS_LINUX
|
||||
#include "include/sys/linux/desktopinfo.h"
|
||||
#include <qfontdatabase.h>
|
||||
#endif
|
||||
|
||||
void signal_handler(int signum) {
|
||||
@ -67,6 +68,11 @@ int main(int argc, char* argv[]) {
|
||||
QApplication::setQuitOnLastWindowClosed(false);
|
||||
QApplication a(argc, argv);
|
||||
|
||||
#ifdef Q_OS_LINUX
|
||||
// Load the emoji font only on Linux
|
||||
QFontDatabase::addApplicationFont(":/font/notoEmoji");
|
||||
#endif
|
||||
|
||||
// Clean
|
||||
QDir::setCurrent(QApplication::applicationDirPath());
|
||||
if (QFile::exists("updater.old")) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user