Compare commits

..
3 Commits
Author SHA1 Message Date
galister 9505352f37 Release 26.1.2 2026-01-10 22:52:10 +09:00
galister 07cb0e7ab8 fix icon loading in cache folder missing 2026-01-10 22:51:22 +09:00
galister 285f6db134 fix bindings for wmr controllers 2026-01-10 22:51:04 +09:00
5 changed files with 17 additions and 10 deletions

No files matched your search

Generated
+2 -2
View File
@@ -6301,7 +6301,7 @@ dependencies = [
[[package]]
name = "wayvr"
version = "26.1.1"
version = "26.1.2"
dependencies = [
"anyhow",
"ash",
@@ -6375,7 +6375,7 @@ dependencies = [
[[package]]
name = "wayvrctl"
version = "26.1.1"
version = "26.1.2"
dependencies = [
"anyhow",
"clap",
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "wayvr"
version = "26.1.1"
version = "26.1.2"
edition = "2024"
license = "GPL-3.0-only"
authors = ["galister", "oo8dev"]
@@ -257,11 +257,11 @@
right: "/user/hand/right/input/thumbstick/x"
},
show_hide: {
left: "/user/hand/left/input/system/click",
left: "/user/hand/left/input/menu/click",
},
space_drag: {
double_click: true,
right: "/user/hand/left/input/system/click",
right: "/user/hand/left/input/menu/click",
},
click_modifier_right: {
left: "/user/hand/left/input/trackpad/dpad_up",
@@ -301,11 +301,11 @@
right: "/user/hand/right/input/thumbstick/x"
},
show_hide: {
left: "/user/hand/left/input/system/click",
left: "/user/hand/left/input/menu/click",
},
space_drag: {
double_click: true,
right: "/user/hand/left/input/system/click",
right: "/user/hand/left/input/menu/click",
},
},
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "wayvrctl"
version = "26.1.1"
version = "26.1.2"
edition = "2024"
description = "CLI for controlling WayVR"
license = "GPL-3.0-only"
+9 -2
View File
@@ -11,6 +11,7 @@ use std::{
};
use crate::cache_dir;
use anyhow::Context;
use ini::Ini;
use serde::{Deserialize, Serialize};
use walkdir::WalkDir;
@@ -290,7 +291,13 @@ impl DesktopFinder {
pub fn create_icon(desktop_entry_name: &str) -> anyhow::Result<String> {
let relative_path = format!("icons/{}.svg", desktop_entry_name);
let file_path = cache_dir::get_path(&relative_path).to_string_lossy().to_string();
let file_path = cache_dir::get_path(&relative_path);
let mut dir_path = file_path.clone();
dir_path.pop();
std::fs::create_dir_all(dir_path).context("Could not create ~/.cache/wayvr")?;
let file_path = file_path.to_string_lossy().to_string();
if std::fs::exists(&file_path).unwrap_or(false) {
return Ok(file_path);
@@ -304,7 +311,7 @@ impl DesktopFinder {
..Default::default()
});
std::fs::write(&file_path, svg)?;
std::fs::write(&file_path, svg).context("Could not save file to ~/.cache/wayvr")?;
Ok(file_path)
}