Skip to content

Commit

Permalink
feat: set set-fix-to-user-rotation to enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
RudraSwat committed May 15, 2023
1 parent fd8d0cb commit 3e8089d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions blend-settings/src/internal/js/android.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ function init_waydroid() {
require('child_process').spawnSync('pkexec', ['systemctl', 'enable', '--now', 'waydroid-container'])
require('child_process').spawn('sh', ['-c', 'waydroid session start & disown'])
setTimeout(() => {
require('child_process').spawnSync('sh', ['-c', 'pkexec waydroid shell wm set-fix-to-user-rotation enabled'])
require('child_process').spawnSync('sh', ['-c', 'echo "persist.waydroid.multi_windows=true" | pkexec tee -a /var/lib/waydroid/waydroid.cfg'])
if (require('child_process').spawnSync('sh', ['-c', 'LC_ALL=C glxinfo | grep "^OpenGL renderer string: "']).stdout.includes('NVIDIA') || require('child_process').spawnSync('cat', ['/proc/cpuinfo']).stdout.includes('hypervisor')) {
require('child_process').spawnSync('sh', ['-c', 'echo "ro.hardware.gralloc=default" | pkexec tee -a /var/lib/waydroid/waydroid.cfg'])
Expand Down

0 comments on commit 3e8089d

Please sign in to comment.