mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-12-16 17:11:37 +08:00
适配麒麟 CPU Wayland 环境时,强制设置环境变量 QT_WAYLAND_SHELL_INTEGRATION 为 kwayland-shell,在 TreeLand 混合器下崩溃 Log: 添加环境变量判断,DDE_CURRENT_COMPOSITER=TreeLand 或 DESKTOP_SESSION=treeland 时不执行上述设置环境变量操作
24 lines
539 B
C++
24 lines
539 B
C++
#ifndef UTILS_H
|
|
#define UTILS_H
|
|
|
|
#include <QObject>
|
|
#include <QJsonObject>
|
|
|
|
class Utils
|
|
{
|
|
public:
|
|
static void sendNotification(const QString &icon, const QString &title, const QString &body);
|
|
static bool isDDE();
|
|
static bool isWayland();
|
|
static bool isTreeLand();
|
|
static void initConfig();
|
|
static bool isUOS();
|
|
static bool isPhytium();
|
|
static QString initUUID();
|
|
static void setQPAPlatform();
|
|
static void checkUOSDeveloperMode();
|
|
static QJsonObject parseFeatureJsonFile();
|
|
};
|
|
|
|
#endif // UTILS_H
|