@@ -137,13 +137,14 @@ pub async fn execute(mut cmd: Cmd) -> eyre::Result<()> {
137
137
138
138
#[ cfg( feature = "os-notifier" ) ]
139
139
show_notification ( cmd. system_notifications , & config, |notif| {
140
- notif
141
- . body ( & format ! (
142
- "received status code {} while running command '{}'" ,
143
- output. status. code( ) . unwrap_or( -1 ) ,
144
- binary. display( )
145
- ) )
146
- . urgency ( notify_rust:: Urgency :: Critical ) ;
140
+ notif. body ( & format ! (
141
+ "received status code {} while running command '{}'" ,
142
+ output. status. code( ) . unwrap_or( -1 ) ,
143
+ binary. display( )
144
+ ) ) ;
145
+
146
+ #[ cfg( target_os = "linux" ) ]
147
+ notif. urgency ( notify_rust:: Urgency :: Critical ) ;
147
148
} ) ;
148
149
149
150
exit ( 1 ) ;
@@ -175,12 +176,13 @@ pub async fn execute(mut cmd: Cmd) -> eyre::Result<()> {
175
176
176
177
#[ cfg( feature = "os-notifier" ) ]
177
178
show_notification ( cmd. system_notifications , & config, |notif| {
178
- notif
179
- . body ( & format ! (
180
- "received unexpected JSON payload from server `{}` [status code: {}]" ,
181
- server, status
182
- ) )
183
- . urgency ( notify_rust:: Urgency :: Critical ) ;
179
+ notif. body ( & format ! (
180
+ "received unexpected JSON payload from server `{}` [status code: {}]" ,
181
+ server, status
182
+ ) ) ;
183
+
184
+ #[ cfg( target_os = "linux" ) ]
185
+ notif. urgency ( notify_rust:: Urgency :: Critical ) ;
184
186
} ) ;
185
187
}
186
188
@@ -192,9 +194,10 @@ pub async fn execute(mut cmd: Cmd) -> eyre::Result<()> {
192
194
193
195
#[ cfg( feature = "os-notifier" ) ]
194
196
show_notification ( cmd. system_notifications , & config, |notif| {
195
- notif
196
- . body ( & format ! ( "received message from server: {message}" ) )
197
- . urgency ( notify_rust:: Urgency :: Critical ) ;
197
+ notif. body ( & format ! ( "received message from server: {message}" ) ) ;
198
+
199
+ #[ cfg( target_os = "linux" ) ]
200
+ notif. urgency ( notify_rust:: Urgency :: Critical ) ;
198
201
} ) ;
199
202
200
203
if cmd. no_copy || clipboard. is_none ( ) {
0 commit comments