addition
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user