The user needs to enable unsafe mode for the session
The code need to be changed to ES module syntax:
import('resource:///org/gnome/shell/ui/status/keyboard.js').then(m => m.getInputSourceManager().inputSources[" + QString::number(group) + "].activate())
Synergy Version
Synergy 3 RC3 - v3.0.79.1-rc3
Steps to Reproduce
Client: Enable "Use the primary computer's keyboard layout"
Client: Add two keyboard layouts, one of them should be the same as the server's layout
Client: Activate the keyboard layout that is different from the server's layout
Restart the client
Press a key on the server, and a warning should be logged.
Gnome has tightened the security around DBus and Eval: https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1970
For setting keyboard layout via DBus to work:
import('resource:///org/gnome/shell/ui/status/keyboard.js').then(m => m.getInputSourceManager().inputSources[" + QString::number(group) + "].activate())
Synergy Version
Synergy 3 RC3 - v3.0.79.1-rc3
Steps to Reproduce
Logs