File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2424//! Wayland hotkey path works end-to-end and the qol integration just needs
2525//! to wrap this same flow.
2626
27- use std:: time:: SystemTime ;
27+ // This tool drives the Linux-only xdg-desktop-portal (via ashpd, a Linux-only
28+ // dep), so it's a no-op on other platforms rather than a build break.
29+ #[ cfg( not( target_os = "linux" ) ) ]
30+ fn main ( ) {
31+ eprintln ! ( "portal_test is Linux-only (xdg-desktop-portal GlobalShortcuts)." ) ;
32+ }
2833
34+ #[ cfg( target_os = "linux" ) ]
2935use ashpd:: desktop:: global_shortcuts:: { GlobalShortcuts , NewShortcut } ;
36+ #[ cfg( target_os = "linux" ) ]
3037use futures_util:: StreamExt ;
38+ #[ cfg( target_os = "linux" ) ]
39+ use std:: time:: SystemTime ;
3140
41+ #[ cfg( target_os = "linux" ) ]
3242const SHORTCUT_ID : & str = "qol-toggle" ;
3343
44+ #[ cfg( target_os = "linux" ) ]
3445#[ tokio:: main]
3546async fn main ( ) -> ashpd:: Result < ( ) > {
3647 tracing_subscriber:: fmt ( )
You can’t perform that action at this time.
0 commit comments