mirror of
https://github.com/wayvr-org/wayvr.git
synced 2026-10-28 22:02:16 +01:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9505352f37 | ||
|
|
07cb0e7ab8 | ||
|
|
285f6db134 |
No files matched your search
Generated
+2
-2
@@ -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
@@ -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
@@ -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"
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user