feat: support gnome, hyprland and niri
This commit is contained in:
1 parent
bccd1f5510
commit
eaec9325af
48 files changed
+4030
-2131
No files matched your search
@@ -51,6 +51,13 @@ QString AgentSocket::path()
|
||||
return QStandardPaths::writableLocation(QStandardPaths::RuntimeLocation) + QStringLiteral("/face-unlock/agent.socket");
|
||||
}
|
||||
|
||||
bool AgentSocket::running()
|
||||
{
|
||||
QLocalSocket probe;
|
||||
probe.connectToServer(path());
|
||||
return probe.waitForConnected(500);
|
||||
}
|
||||
|
||||
bool AgentSocket::listen()
|
||||
{
|
||||
const QString p = path();
|
||||
|
||||
Reference in new issue
Block a user