casualsnek / cassowary

Run Windows Applications on Linux as if they are native, Use linux applications to launch files files located in windows vm without needing to install applications on vm. With easy to use configuration GUI
GNU General Public License v2.0
2.88k stars 75 forks source link

[Feature Request] Add an option to start the vm if it's not booted when starting the app #16

Open vega-d opened 2 years ago

vega-d commented 2 years ago

It would be handy to have a Start VM button on the main page, so if cassowary starts and sees there's no server running the user can start the VM with one click of a button instead of opening virt-manager.

casualsnek commented 2 years ago

Should i add a button on main page or check if vm is switched off and offer user to switch it on in the popup dialog ? ( This will show up if vm is off instead of connection error message that is shown now )

vega-d commented 2 years ago

it doesn't appear to work at all. Also limiting the timeout to at least 5 minutes is stupid, why would I want it to wait 5 minutes?

casualsnek commented 2 years ago

it doesn't appear to work at all. Also limiting the timeout to at least 5 minutes is stupid, why would I want it to wait 5 minutes?

https://github.com/casualsnek/cassowary/issues/10 Maybe you wanted to comment here, on the 5 minute thing i think it was a mistake while adding the gui widget ! I will check again on my system if i can get autosuspend to work and work o it !

casualsnek commented 2 years ago

Hello there, i have added a dialog that will be shown when application is started without booting the VM and allows user to turn it on. ( The first app launch may fail as VM can take some time to boot and we don't know if it has completed boot process ).

I will also add a toggle to start VM without prompting the user before next update !

You can try the build from here: https://ufile.io/f/p5tod