Skip to content

Commit 7cf0a7c

Browse files
Quote ffrunner log path (fixes macos launch?)
1 parent a73a9a8 commit 7cf0a7c

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

src-tauri/src/lib.rs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -520,12 +520,19 @@ async fn prep_launch(
520520
debug!("Asset URL: {}", asset_url);
521521
debug!("Main URL: {}", main_url);
522522

523-
let log_file_path = &app_statics.ffrunner_log_path;
523+
let log_file_path = format!(
524+
"\"{}\"",
525+
app_statics
526+
.ffrunner_log_path
527+
.clone()
528+
.to_str()
529+
.ok_or("Invalid log file path")?
530+
);
524531

525532
cmd.args(["-m", &main_url])
526533
.args(["-a", &ip])
527534
.args(["--asseturl", &format!("{}/", asset_url)])
528-
.args(["-l", log_file_path.to_str().ok_or("Invalid log file path")?]);
535+
.args(["-l", &log_file_path]);
529536

530537
if let ServerInfo::Endpoint { endpoint, .. } = &server.info {
531538
match session_token {

0 commit comments

Comments
 (0)