Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ rmp-serde = "1.1"
rodio = "0.12"
serde = { version = "1", features = ["derive"] }
shellexpand = "2.1.0"
sysinfo = "0.26.8"
sysinfo = "0.29"
thiserror = "1.0"
tokio = { version = "1", features = ["full"] }
tokio-stream = "0.1"
Expand Down
8 changes: 8 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
# Lists all just tasks in order of their appearance inside the justfile
default:
just --list --unsorted

# Builds and starts a debian container in interactive mode with the repository mounted inside
env-linux:
docker build -f docker/linux/Dockerfile -t zentime-linux .
docker run --volume $(pwd):/zentime -it zentime-linux bash

# Shows outdated direct dependencies
outdated:
cargo outdated --color "Always" -d 1
2 changes: 1 addition & 1 deletion src/default_cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pub async fn default_cmd(common_args: &CommonArgs, config: Config) {
// the path to its executable. That way this does also work in ci or during
// development, where one might not have added a specific zentime binary to their path.
let current_process = system
.process(Pid::from(process::id() as i32))
.process(Pid::from(process::id() as usize))
.expect("Could not retrieve information for current zentime process");

let current_dir = current_dir()
Expand Down
2 changes: 2 additions & 0 deletions src/server/start.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ async fn handle_client_to_server_msg(

info!("Cleaning up socket file");
let socket_name = get_socket_name();
info!("Socket name: {}", socket_name);

remove_file(socket_name)
.await
.context("Could not remove existing socket file")?;
Expand Down