mirror of
https://invent.kde.org/network/kdeconnect-kde.git
synced 2025-12-17 12:00:30 +01:00
Fix activating existing settings window on Wayland
Add the necessary bits for XDG activation to work Move the code for launching the settings from the daemon to the respective processes so that we don't need to pass activation tokens over another process boundary
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
#include <core/networkpacket.h>
|
||||
#include <core/device.h>
|
||||
#include <core/daemon.h>
|
||||
#include <core/openconfig.h>
|
||||
|
||||
#include "plugin_runcommand_debug.h"
|
||||
|
||||
@@ -68,7 +69,8 @@ bool RunCommandPlugin::receivePacket(const NetworkPacket& np)
|
||||
#endif
|
||||
return true;
|
||||
} else if (np.has(QStringLiteral("setup"))) {
|
||||
Daemon::instance()->openConfiguration(device()->id(), QStringLiteral("kdeconnect_runcommand"));
|
||||
OpenConfig oc;
|
||||
oc.openConfiguration(device()->id(), QStringLiteral("kdeconnect_runcommand"));
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user