This repository was archived by the owner on Feb 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -41,18 +41,16 @@ class Safari extends Browser {
41
41
// to open Safari for a given URL. In summary they provide a new instance
42
42
// to open, that instance to wait for opening the url until Safari launches,
43
43
// provide Safari bundles identifier.
44
- // For more details run `man open` on MacOS.
45
- // TODO(nurhan): explore implementing this part using Apple Script or
46
- // MacOS native APIs such as LSLaunchURLSpec. In the current solution there is
47
- // no way of closing Safari after opening with open command.
44
+ // The details copied from `man open` on MacOS.
45
+ // TODO(nurhan): https://github.com/flutter/flutter/issues/50809
48
46
var process = await Process .start (installation.executable, [
49
- '-F' ,
50
- '-W' ,
51
- '-n' ,
52
- '-b' ,
53
- 'com.apple.Safari' ,
47
+ '-F' , // Open a fresh application with no persistant state.
48
+ '-W' , // Open to wait until the applications it opens.
49
+ '-n' , // Open a new instance of the application.
50
+ '-b' , // Specifies the bundle identifier for the application to use.
51
+ 'com.apple.Safari' , // Bundle identifier for Safari.
54
52
'${url .toString ()}'
55
- ] /* args */ );
53
+ ]);
56
54
57
55
return process;
58
56
});
You can’t perform that action at this time.
0 commit comments