For the first point, you’re right. So we are going to implement a new key which will allow you to set the keyboard for virtual sessions when there is no physical display present. For example, it could be something like this #DisplayKeyboard “us”.
Try with a policy kit rule like this:
1) Create the file /etc/polkit-1/rules.d/50-nomachine.rules
(as root).
2) Then the rule
polkit.addRule(function(action, subject) {polkit.log(action + ", " + subject);if (~["org.freedesktop.login1.power-off","org.freedesktop.login1.power-off-multiple-sessions","org.freedesktop.login1.reboot","org.freedesktop.login1.reboot-multiple-sessions"].indexOf(action.id)) {return polkit.Result.YES;}});