ryanrudolfoba / SteamOS-Waydroid-Installer

Script to easily install / uninstall Android via Waydroid on the Steam Deck running on SteamOS.
https://www.youtube.com/watch?v=06T-h-jPVx8
434 stars 23 forks source link

Waydroid nukes Display Enviroment Variable when running #118

Closed MNarath1 closed 2 months ago

MNarath1 commented 3 months ago

I don't quite understand why but when waydroid runs it will erase the Display env variable and cause programs like Firefox or Flatseal to not be able to run until you restart the Deck in the logs you will get steamdeck plasmashell[24803]: Error: no DISPLAY environment variable specified

ryanrudolfoba commented 3 months ago

It's due to the cage launcher. I tried to document my troubleshooting steps here -

https://youtu.be/IWe0arEnCRI

TLDR - cage launcher uses wlrandr to display Waydroid and once you exiit Waydroid using the STEAM menu the display is "stuck" and needs to be "reset".

I'm trying to figure out how to integrate the fix into the script but im not getting consistent results.

I plan to just add another Game Mode shortcut that "resets" the display - this needs to be run manually after exiting Waydroid. Not ideal but thats my last resort if i still cant figure it out.

MNarath1 commented 2 months ago

there is a decky plugin that can run scripts after stopping a game but last time i used it that function worked less than reliable.

ryanrudolfoba commented 2 months ago

i've updated the script and it seems to have fixed the display environment variable issue. i cant replicate the issue now - firefox / flatpaks works after exiting waydroid.