Gate macOS reminder service code
- SHA
fe2634a3788b5a42ffad0237073be4f8f8c76fd0- Parents
-
9694ee5 - Tree
c51371f
fe2634a
fe2634a3788b5a42ffad0237073be4f8f8c76fd09694ee5
c51371f| Status | File | + | - |
|---|---|---|---|
| M |
src/services.rs
|
3 | 0 |
src/services.rsmodified@@ -150,9 +150,11 @@ impl fmt::Display for ServiceStatus { | ||
| 150 | 150 | } |
| 151 | 151 | } |
| 152 | 152 | |
| 153 | +#[cfg(target_os = "macos")] | |
| 153 | 154 | #[derive(Debug)] |
| 154 | 155 | struct MacLaunchAgent; |
| 155 | 156 | |
| 157 | +#[cfg(target_os = "macos")] | |
| 156 | 158 | impl MacLaunchAgent { |
| 157 | 159 | fn plist_path() -> Result<PathBuf, ServiceError> { |
| 158 | 160 | Ok(home_dir()? |
@@ -162,6 +164,7 @@ impl MacLaunchAgent { | ||
| 162 | 164 | } |
| 163 | 165 | } |
| 164 | 166 | |
| 167 | +#[cfg(target_os = "macos")] | |
| 165 | 168 | impl ServiceInstaller for MacLaunchAgent { |
| 166 | 169 | fn install( |
| 167 | 170 | &self, |