Skip to content

Commit 995f2d8

Browse files
authored
Merge pull request #396 from MrRio/bugfix/open-in-default-browser
Fix bug where the "valet open" command ignores your default browser choice
2 parents 65618fe + 0fc8268 commit 995f2d8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cli/valet.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,7 @@
184184
*/
185185
$app->command('open [domain]', function ($domain = null) {
186186
$url = "http://".($domain ?: Site::host(getcwd())).'.'.Configuration::read()['domain'];
187-
188-
passthru("open ".escapeshellarg($url));
187+
CommandLine::runAsUser("open ".escapeshellarg($url));
189188
})->descriptions('Open the site for the current (or specified) directory in your browser');
190189

191190
/**

0 commit comments

Comments
 (0)