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:
Nicolas Fella
2022-05-12 03:59:56 +02:00
parent 184120642a
commit ad01ef1695
12 changed files with 92 additions and 28 deletions

View File

@@ -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;