Commit 74f87da 1 parent bb10a40 commit 74f87da Copy full SHA for 74f87da
File tree 1 file changed +9
-0
lines changed
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -496,8 +496,17 @@ pub fn run(webview_options: Options) -> wry::Result<()> {
496
496
if let Some ( user_agent) = webview_options. user_agent {
497
497
webview_builder = webview_builder. with_user_agent ( user_agent. as_str ( ) ) ;
498
498
}
499
+ #[ cfg( not( target_os = "linux" ) ) ]
499
500
let webview = webview_builder. build ( & window) ?;
500
501
502
+ #[ cfg( target_os = "linux" ) ]
503
+ let webview = {
504
+ use tao:: platform:: unix:: WindowExtUnix ;
505
+ use wry:: WebViewBuilderExtUnix ;
506
+ let vbox = window. default_vbox ( ) . unwrap ( ) ;
507
+ webview_builder. build_gtk ( vbox) ?
508
+ } ;
509
+
501
510
let notify_tx = tx. clone ( ) ;
502
511
let notify = move |notification : Notification | {
503
512
debug ! ( notification = ?notification, "Sending notification to client" ) ;
You can’t perform that action at this time.
0 commit comments