diff options
author | metamuffin <yvchraiqi@protonmail.com> | 2022-08-17 19:06:16 +0200 |
---|---|---|
committer | metamuffin <yvchraiqi@protonmail.com> | 2022-08-17 19:06:16 +0200 |
commit | 1ca0554367326b2004c59306e5f3c25b079e28ec (patch) | |
tree | 72258793eb33c6e32e3f0868b0a080b7f0fc81d5 /karlgui/src/main.rs | |
parent | c0f90386900f0f767c7d0569e0f758d305af3d09 (diff) | |
download | karlender-1ca0554367326b2004c59306e5f3c25b079e28ec.tar karlender-1ca0554367326b2004c59306e5f3c25b079e28ec.tar.bz2 karlender-1ca0554367326b2004c59306e5f3c25b079e28ec.tar.zst |
websocket interface
Diffstat (limited to 'karlgui/src/main.rs')
-rw-r--r-- | karlgui/src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/karlgui/src/main.rs b/karlgui/src/main.rs index e520306..6044496 100644 --- a/karlgui/src/main.rs +++ b/karlgui/src/main.rs @@ -6,7 +6,7 @@ pub mod views; use crate::{client::Client, globals::Globals}; use eframe::CreationContext; use egui::CentralPanel; -use karlcommon::{socket_path, ServerboundPacket}; +use karlcommon::{interfaces::unix_path, ServerboundPacket}; use log::{error, info}; use std::{os::unix::net::UnixStream, process::exit}; use views::{calendar::Calendar, edit::ShowAndEdit}; @@ -39,7 +39,7 @@ impl App { pub fn new(cc: &CreationContext) -> Self { cc.egui_ctx.set_visuals(egui::Visuals::dark()); - let socket = match UnixStream::connect(socket_path()) { + let socket = match UnixStream::connect(unix_path()) { Ok(s) => s, Err(e) => { error!("failed to connect to socket: {}", e); |