gtk-rs / gtk4-rs

Rust bindings of GTK 4
https://gtk-rs.org/gtk4-rs/
MIT License
1.9k stars 174 forks source link

[HELP] Can't get the default Display. #1816

Closed Shylock-Hg closed 3 months ago

Shylock-Hg commented 3 months ago

This code is just:

    let display = gdk4::Display::default().unwrap();

It panics for None.

My OS is

Opensuse Tumbleweed

This crate version is:

0.9.0
Shylock-Hg commented 3 months ago

Need to call init