Skip to content

Commit 82f177e

Browse files
committed
fix: maybe cannot open path of the current working directory: Permission denied
1 parent 23f5e4c commit 82f177e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src-tauri/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ fn open_url_in_browser(url: String) -> Result<(), String> {
189189
// Use xdg-open for Linux
190190
Command::new("xdg-open")
191191
.arg(&url)
192+
.current_dir("/tmp")
192193
.spawn()
193194
.map_err(|err| format!("Failed to open URL on Linux: {}", err))?;
194195
}

0 commit comments

Comments
 (0)