mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2025-12-18 20:50:09 +08:00
* Fix deploy_linux64.sh
Add missing QTlsBackendOpenSSLPlugin.
* Add Wayland support
* Fix Wayland support
* Fix Wayland support
* Revert "Fix deploy_linux64.sh"
This reverts commit 2a6779f526.
* Update mainwindow.cpp
* Force QT_QPA_PLATFORM=xcb on Linux Desktop
32 lines
475 B
C++
32 lines
475 B
C++
#pragma once
|
|
|
|
#include <QString>
|
|
|
|
class DesktopInfo
|
|
{
|
|
public:
|
|
DesktopInfo();
|
|
|
|
enum WM
|
|
{
|
|
GNOME,
|
|
KDE,
|
|
OTHER,
|
|
QTILE,
|
|
SWAY,
|
|
HYPRLAND
|
|
};
|
|
|
|
bool waylandDetected();
|
|
WM windowManager();
|
|
|
|
private:
|
|
QString XDG_CURRENT_DESKTOP;
|
|
QString XDG_SESSION_TYPE;
|
|
QString WAYLAND_DISPLAY;
|
|
QString KDE_FULL_SESSION;
|
|
QString GNOME_DESKTOP_SESSION_ID;
|
|
QString GDMSESSION;
|
|
QString DESKTOP_SESSION;
|
|
};
|