File: 1001_mark-session-as-running-in-VM-via-envvar.patch

package info (click to toggle)
lomiri-session 0.3-11
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 256 kB
  • sloc: sh: 115; makefile: 13
file content (15 lines) | stat: -rw-r--r-- 640 bytes parent folder | download
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