Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux: setCurrentLanguageWithDbus() no longer works in Gnome 41+ #7343

Open
CheeseSucker opened this issue Mar 31, 2024 · 1 comment
Open
Labels
bug There is an error or the program doesn't work properly triage Awaiting repro confirmation (bug) or needs accepting (enhancement)

Comments

@CheeseSucker
Copy link

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:

  1. The user needs to enable unsafe mode for the session
  2. 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

  1. Client: Enable "Use the primary computer's keyboard layout"
  2. Client: Add two keyboard layouts, one of them should be the same as the server's layout
  3. Client: Activate the keyboard layout that is different from the server's layout
  4. Restart the client
  5. Press a key on the server, and a warning should be logged.

Logs

synergy-core     [2024-03-31T12:48:15] - WARNING - keyboard layout fail. Reply is unexpected!
@CheeseSucker CheeseSucker added the bug There is an error or the program doesn't work properly label Mar 31, 2024
@nbolton nbolton added the triage Awaiting repro confirmation (bug) or needs accepting (enhancement) label Jul 16, 2024
@nbolton nbolton added the unanswered Issue not yet been answered by a maintainer label Sep 6, 2024
@nbolton
Copy link
Contributor

nbolton commented Sep 6, 2024

Thanks, seems to be in a similar vein to https://github.com/symless/synergy/issues/7342. I will look into this when I can.

@nbolton nbolton removed the unanswered Issue not yet been answered by a maintainer label Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug There is an error or the program doesn't work properly triage Awaiting repro confirmation (bug) or needs accepting (enhancement)
Projects
None yet
Development

No branches or pull requests

2 participants