From 1ca0554367326b2004c59306e5f3c25b079e28ec Mon Sep 17 00:00:00 2001 From: metamuffin Date: Wed, 17 Aug 2022 19:06:16 +0200 Subject: websocket interface --- karlgui/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'karlgui/src') 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); -- cgit v1.2.3-70-g09d2