mirror of
https://github.com/winapps-org/winapps.git
synced 2025-06-05 22:57:19 +02:00
fix: re-add ignore msrs and trim pidfile
This commit is contained in:
parent
0e5276c744
commit
9e8d43c6b8
@ -31,6 +31,7 @@ pub fn start_vm(config: Config) {
|
|||||||
Command::new("quickemu")
|
Command::new("quickemu")
|
||||||
.current_dir(data_dir)
|
.current_dir(data_dir)
|
||||||
.args([
|
.args([
|
||||||
|
"--ignore-msrs-always",
|
||||||
"--vm",
|
"--vm",
|
||||||
&format!("{}.conf", config.vm.name),
|
&format!("{}.conf", config.vm.name),
|
||||||
"--display",
|
"--display",
|
||||||
@ -53,9 +54,11 @@ pub fn kill_vm(config: Config) {
|
|||||||
let data_dir = get_data_dir();
|
let data_dir = get_data_dir();
|
||||||
|
|
||||||
let pid = unwrap_or_exit!(
|
let pid = unwrap_or_exit!(
|
||||||
fs::read_to_string(
|
fs::read_to_string(data_dir.join(format!(
|
||||||
data_dir.join(format!("{}/{}.pid", config.vm.short_name, config.vm.name)),
|
"{}/{}.pid",
|
||||||
),
|
config.vm.short_name,
|
||||||
|
config.vm.name.trim()
|
||||||
|
))),
|
||||||
"Failed to read PID file, is the VM running and the config correct?"
|
"Failed to read PID file, is the VM running and the config correct?"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user