tools/qvm-start-daemon: reduce required permissions to sys-gui itself
Do not require permission to list sys-gui itself just to get keyboard layout. Listing itself is not sensitive (sys-gui knows it exists), but it will make other tools request its properties, which may not be desirable.
This commit is contained in:
parent
b1453953f9
commit
9d6b7257c4
@ -508,7 +508,7 @@ def main(args=None):
|
||||
if args.watch and 'guivm-gui-agent' in enabled_services:
|
||||
args.set_keyboard_layout = True
|
||||
if args.set_keyboard_layout or os.path.exists('/etc/qubes-release'):
|
||||
guivm = args.app.domains[args.app.local_name]
|
||||
guivm = args.app.domains.get_blind(args.app.local_name)
|
||||
set_keyboard_layout(guivm)
|
||||
launcher = DAEMONLauncher(args.app)
|
||||
if args.watch:
|
||||
|
Loading…
Reference in New Issue
Block a user