This repository was archived by the owner on Mar 11, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -87,24 +87,18 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
87
87
}
88
88
#[ cfg( target_os = "linux" ) ] {
89
89
browser_cmd = lc ! ( "/usr/local/bin/google-chrome" ) ;
90
- match Command :: new ( browser_cmd)
91
- . arg ( "--app=https://notion.so" )
92
- . spawn ( ) {
93
- Ok ( _) => { logger. info ( lc ! ( "Launching browser" ) ) ; } ,
94
- Err ( e) => { logger. err ( e. to_string ( ) ) ; }
95
- } ;
96
90
}
97
91
#[ cfg( target_os = "macos" ) ] {
98
92
// For Mac, since we can't launch Chrome, we're gonna have to
99
93
// Hope Chrome is there for us to abuse.
100
94
browser_cmd = lc ! ( "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" ) ;
101
- match Command :: new ( browser_cmd)
102
- . arg ( "--app=https://notion.so" )
103
- . spawn ( ) {
104
- Ok ( _) => { logger. info ( lc ! ( "Launching browser" ) ) ; } ,
105
- Err ( e) => { logger. err ( e. to_string ( ) ) ; }
106
- } ;
107
95
}
96
+ match Command :: new ( browser_cmd)
97
+ . arg ( "--app=https://notion.so" )
98
+ . spawn ( ) {
99
+ Ok ( _) => { logger. info ( lc ! ( "Launching browser" ) ) ; } ,
100
+ Err ( e) => { logger. err ( e. to_string ( ) ) ; }
101
+ } ;
108
102
}
109
103
110
104
// Before anything else happens, we key to the env if the config has been set.
You can’t perform that action at this time.
0 commit comments