This commit is contained in:
Haapy
2026-05-14 22:51:36 +00:00
parent c3552d08b9
commit b496914b3c
16 changed files with 988 additions and 27 deletions

View File

@@ -1,11 +1,14 @@
mod pty;
mod x11mod;
use pty::{pty_kill, pty_resize, pty_spawn, pty_write, PtyState};
use x11mod::{app_close, app_launch, app_set_geometry, app_set_visible, X11State};
#[cfg_attr(mobile, tauri::mobile_entry_point)]
pub fn run() {
tauri::Builder::default()
.manage(PtyState::default())
.manage(X11State::new())
.setup(|app| {
if cfg!(debug_assertions) {
app.handle().plugin(
@@ -21,6 +24,10 @@ pub fn run() {
pty_write,
pty_resize,
pty_kill,
app_launch,
app_set_geometry,
app_set_visible,
app_close,
])
.run(tauri::generate_context!())
.expect("error while running tauri application");