fixing'
This commit is contained in:
@@ -15,6 +15,15 @@ pub fn run() {
|
|||||||
#[cfg(target_os = "linux")]
|
#[cfg(target_os = "linux")]
|
||||||
{
|
{
|
||||||
std::env::set_var("GDK_BACKEND", "x11");
|
std::env::set_var("GDK_BACKEND", "x11");
|
||||||
|
// webkit2gtk's hardware compositor fails in VMs / on systems without a
|
||||||
|
// real GPU and the window goes grey. Falling back to software rendering
|
||||||
|
// here keeps the app usable everywhere.
|
||||||
|
if std::env::var_os("WEBKIT_DISABLE_COMPOSITING_MODE").is_none() {
|
||||||
|
std::env::set_var("WEBKIT_DISABLE_COMPOSITING_MODE", "1");
|
||||||
|
}
|
||||||
|
if std::env::var_os("WEBKIT_DISABLE_DMABUF_RENDERER").is_none() {
|
||||||
|
std::env::set_var("WEBKIT_DISABLE_DMABUF_RENDERER", "1");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
tauri::Builder::default()
|
tauri::Builder::default()
|
||||||
|
|||||||
Reference in New Issue
Block a user