1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
Description: Mark session as running in a VM. Need for work-around in lomiri's InputDispatchFilter code.
Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Forwarded: https://gitlab.com/ubports/development/core/lomiri-session/-/merge_requests/25
--- a/lomiri-session.in
+++ b/lomiri-session.in
@@ -43,6 +43,8 @@
if ([ -x "$(command -v hostnamectl)" ] && [ "$(hostnamectl status | grep 'Chassis: vm')" ]) \
|| grep -wq hypervisor /proc/cpuinfo; then
export MIR_MESA_KMS_DISABLE_MODESET_PROBE=1
+ export LOMIRI_RUNNING_IN_VM=1
+ dbus-update-activation-environment --systemd LOMIRI_RUNNING_IN_VM=1
fi
# Set some envs
|