We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26ae3f1 commit 0cf47ceCopy full SHA for 0cf47ce
cli/valet.php
@@ -185,7 +185,7 @@
185
$app->command('open [domain]', function ($domain = null) {
186
$url = "http://".($domain ?: Site::host(getcwd())).'.'.Configuration::read()['domain'];
187
// Run the 'open' command as the currently logged in user instead of root
188
- passthru('sudo --user=`stat -f%Su /dev/console` open ' . escapeshellarg($url));
+ CommandLine::runAsUser("open ".escapeshellarg($url));
189
})->descriptions('Open the site for the current (or specified) directory in your browser');
190
191
/**
0 commit comments