Skip to content

Commit

Permalink
Filter-out keyboard layout switching options
Browse files Browse the repository at this point in the history
When switching layout with a key combo, do not let VM to switch the
layout again (once as instructed by qvm-start-daemon, and then on its
own due to the key combo).

Fixes QubesOS/qubes-issues#8035
  • Loading branch information
marmarek committed Aug 5, 2023
1 parent e03298c commit fc08f4e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions qubesadmin/tools/qvm_start_daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@ def __init__(self, binary_string):
self.languages = split_string[2].decode().split(',')
self.variants = split_string[3].decode().split(',')
self.options = split_string[4].decode()
self.options = ",".join(opt for opt in self.options.split(",")
if not opt.endswith("_toggle"))

def get_property(self, layout_num):
"""Return the selected keyboard layout as formatted for keyboard_layout
Expand Down

0 comments on commit fc08f4e

Please sign in to comment.