LLeMbas Desktop 0.7.2: starts again on Linux
0.7.1 read WebKitWebView's 'settings' property through GLib; it is write-only, GLib panicked, and the app aborted before its window appeared. The read is gone; the microphone permission handler stays. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
4 files changed
+11
-17
No files matched your search
@@ -439,10 +439,6 @@ fn build_main(handle: &AppHandle, target: Option<Url>) -> tauri::Result<()> {
|
||||
(size.height - TITLE_H - 2.0 * FRAME).max(0.0),
|
||||
),
|
||||
)?;
|
||||
#[cfg(target_os = "linux")]
|
||||
if let Some(content) = handle.get_webview(CONTENT) {
|
||||
enable_capture(&content);
|
||||
}
|
||||
layout(&window);
|
||||
Ok(())
|
||||
}
|
||||
@@ -464,17 +460,6 @@ fn permission(handle: &AppHandle, view: &Webview, kind: PermissionKind) -> Permi
|
||||
}
|
||||
}
|
||||
|
||||
/// Media capture on, explicitly: current WebKitGTK has it on by default, but the AppImage carries
|
||||
/// the older WebKitGTK of the system it was built on.
|
||||
#[cfg(target_os = "linux")]
|
||||
fn enable_capture(view: &Webview) {
|
||||
let _ = view.with_webview(|pv| {
|
||||
use gtk::prelude::*;
|
||||
let settings: gtk::glib::Object = pv.inner().property("settings");
|
||||
settings.set_property("enable-media-stream", true);
|
||||
});
|
||||
}
|
||||
|
||||
/// On Linux, Tauri packs every webview of a window into the window's GTK box, each with an equal
|
||||
/// share of the height, and positions and sizes set on a webview are not applied there. So the
|
||||
/// title bar is told directly: a fixed height, no share of what is left (the content takes it).
|
||||
|
||||
Reference in new issue
Block a user