amodm / webbrowser-rs

Rust library to open URLs in the web browsers available on a platform

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Browser not opening in Linux mint OS

kpramesh2212 opened this issue · comments

Trying the below

fn main() {
webbrowser::open("https://google.com").unwrap()
}

web browser is not opening

Firefox is my default browser

/usr/bin/firefox

Mozilla Firefox 125.0.1

My OS version:

NAME="Linux Mint"
VERSION="21.3 (Virginia)"
ID=linuxmint
ID_LIKE="ubuntu debian"
PRETTY_NAME="Linux Mint 21.3"
VERSION_ID="21.3"
HOME_URL="https://www.linuxmint.com/"
SUPPORT_URL="https://forums.linuxmint.com/"
BUG_REPORT_URL="http://linuxmint-troubleshooting-guide.readthedocs.io/en/latest/"
PRIVACY_POLICY_URL="https://www.linuxmint.com/"
VERSION_CODENAME=virginia
UBUNTU_CODENAME=jammy

Could you please help

Sorry please ignore its working perfectly fine i didnt know it was non blocking

works perfectly fine