mirror of
https://gitlab.com/gabmus/envision.git
synced 2025-09-26 19:28:38 +00:00
fix: create openxr config dir when starting profile
This commit is contained in:
parent
e685cf757d
commit
4905c8fed1
1 changed files with 2 additions and 1 deletions
|
@ -7,7 +7,7 @@ use crate::{
|
||||||
use anyhow::bail;
|
use anyhow::bail;
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
use std::{
|
use std::{
|
||||||
fs::{remove_file, rename},
|
fs::{create_dir_all, remove_file, rename},
|
||||||
os::unix::fs::symlink,
|
os::unix::fs::symlink,
|
||||||
path::{Path, PathBuf},
|
path::{Path, PathBuf},
|
||||||
};
|
};
|
||||||
|
@ -112,6 +112,7 @@ pub fn set_current_active_runtime_to_profile(profile: &Profile) -> anyhow::Resul
|
||||||
|
|
||||||
let profile_openxr_json = profile.openxr_json_path();
|
let profile_openxr_json = profile.openxr_json_path();
|
||||||
if profile_openxr_json.is_file() {
|
if profile_openxr_json.is_file() {
|
||||||
|
create_dir_all(dest.parent().unwrap())?;
|
||||||
symlink(profile_openxr_json, &dest)?;
|
symlink(profile_openxr_json, &dest)?;
|
||||||
} else {
|
} else {
|
||||||
warn!("profile openxr json file doesn't exist");
|
warn!("profile openxr json file doesn't exist");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue