Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to check chrome is installed #313

Open
wideweide opened this issue May 12, 2023 · 0 comments
Open

how to check chrome is installed #313

wideweide opened this issue May 12, 2023 · 0 comments

Comments

@wideweide
Copy link

wideweide commented May 12, 2023

is there method to check chrome is installed in win and linux ?
where chrome /chrome --version /google-chrome --version ,seems not very correctly

I have installed chrome in pop!os 's shop, but chrome --version/google-chrome --version output noting...

in windows: I have not install firefox, so not open url, but there is no error and some response to verify that it is correct

import open, { openApp, apps } from 'open';

async function test() {
    let res = await open(
        'https://cn.bing.com/',
        {
            app: {
                name: apps.chrome,
                arguments: [
                    '--app=https://cn.bing.com/',
                    '--window-size=800,600'
                ],
            },
            await: true,
            height: 800, width: 600
        }
    )
}

test()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant