Skip to content

Commit

Permalink
fix: re-add ignore msrs and trim pidfile
Browse files Browse the repository at this point in the history
  • Loading branch information
oskardotglobal committed Oct 10, 2023
1 parent 0e5276c commit 9e8d43c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions winapps/src/quickemu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ pub fn start_vm(config: Config) {
Command::new("quickemu")
.current_dir(data_dir)
.args([
"--ignore-msrs-always",
"--vm",
&format!("{}.conf", config.vm.name),
"--display",
Expand All @@ -53,9 +54,11 @@ pub fn kill_vm(config: Config) {
let data_dir = get_data_dir();

let pid = unwrap_or_exit!(
fs::read_to_string(
data_dir.join(format!("{}/{}.pid", config.vm.short_name, config.vm.name)),
),
fs::read_to_string(data_dir.join(format!(
"{}/{}.pid",
config.vm.short_name,
config.vm.name.trim()
))),
"Failed to read PID file, is the VM running and the config correct?"
);

Expand Down

0 comments on commit 9e8d43c

Please sign in to comment.