Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
extension-manager/runtime/node_modules
/cmake-build-debug
/.idea
/.vscode
/vgcore*
.env
.direnv
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ bool GnomeClipboardServer::setupDBusConnection() {

// Connect to ClipboardChanged signal
// Signal signature: (ayss) = array of bytes, string, string
bool connected = m_bus.connect(DBUS_SERVICE, DBUS_PATH, DBUS_INTERFACE, "ClipboardChanged", this,
// Explicitly specify the D-Bus signature to ensure proper type matching in Qt6
bool connected = m_bus.connect(DBUS_SERVICE, DBUS_PATH, DBUS_INTERFACE, "ClipboardChanged", "ayss", this,
SLOT(handleClipboardChanged(QByteArray, QString, QString)));

if (!connected) {
Expand Down Expand Up @@ -140,8 +141,8 @@ void GnomeClipboardServer::cleanupDBusConnection() {
// Stop listening to clipboard changes
m_interface->call("StopListening");

// Disconnect from D-Bus signal
m_bus.disconnect(DBUS_SERVICE, DBUS_PATH, DBUS_INTERFACE, "ClipboardChanged", this,
// Disconnect from D-Bus signal (must use same signature as connect)
m_bus.disconnect(DBUS_SERVICE, DBUS_PATH, DBUS_INTERFACE, "ClipboardChanged", "ayss", this,
SLOT(handleClipboardChanged(QByteArray, QString, QString)));

delete m_interface;
Expand Down