[gnome] Update extensions

This commit is contained in:
2026-06-10 11:03:09 -04:00
parent 20fc1e4e75
commit 6c973853c6
394 changed files with 12513 additions and 1340 deletions

View File

@ -106,8 +106,23 @@ export const Clipboard = GObject.registerClass(
}
}
async _onHandleMethodCall(iface, name, parameters, invocation) {
async _onHandleMethodCall(iface, name, param1, param2) {
let retval;
let invocation, parameters;
// GNOME 50+ changed the callback signature from
// (iface, name, parameters, invocation) to
// (iface, name, invocation, parameters)
// Detect which order is being used
if (param1 instanceof GLib.Variant) {
// Old order: parameters, invocation
parameters = param1;
invocation = param2;
} else {
// New order: invocation, parameters
invocation = param1;
parameters = param2;
}
try {
const args = parameters.recursiveUnpack();