lesavka: enable launcher audio and mic paths
This commit is contained in:
parent
2356817080
commit
cfdd7feacf
@ -4,7 +4,7 @@ path = "src/main.rs"
|
|||||||
|
|
||||||
[package]
|
[package]
|
||||||
name = "lesavka_client"
|
name = "lesavka_client"
|
||||||
version = "0.11.18"
|
version = "0.11.19"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
|||||||
@ -52,8 +52,6 @@ pub fn runtime_env_vars(state: &LauncherState) -> BTreeMap<String, String> {
|
|||||||
"LESAVKA_VIEW_MODE".to_string(),
|
"LESAVKA_VIEW_MODE".to_string(),
|
||||||
state.view_mode.as_env().to_string(),
|
state.view_mode.as_env().to_string(),
|
||||||
);
|
);
|
||||||
envs.insert("LESAVKA_AUDIO_DISABLE".to_string(), "1".to_string());
|
|
||||||
envs.insert("LESAVKA_MIC_DISABLE".to_string(), "1".to_string());
|
|
||||||
envs.insert("LESAVKA_CLIPBOARD_DELAY_MS".to_string(), "18".to_string());
|
envs.insert("LESAVKA_CLIPBOARD_DELAY_MS".to_string(), "18".to_string());
|
||||||
if matches!(state.view_mode, ViewMode::Unified) {
|
if matches!(state.view_mode, ViewMode::Unified) {
|
||||||
envs.insert("LESAVKA_DISABLE_VIDEO_RENDER".to_string(), "1".to_string());
|
envs.insert("LESAVKA_DISABLE_VIDEO_RENDER".to_string(), "1".to_string());
|
||||||
@ -157,8 +155,8 @@ mod tests {
|
|||||||
let envs = runtime_env_vars(&state);
|
let envs = runtime_env_vars(&state);
|
||||||
assert_eq!(envs.get("LESAVKA_CAPTURE_REMOTE"), Some(&"0".to_string()));
|
assert_eq!(envs.get("LESAVKA_CAPTURE_REMOTE"), Some(&"0".to_string()));
|
||||||
assert_eq!(envs.get("LESAVKA_VIEW_MODE"), Some(&"unified".to_string()));
|
assert_eq!(envs.get("LESAVKA_VIEW_MODE"), Some(&"unified".to_string()));
|
||||||
assert_eq!(envs.get("LESAVKA_AUDIO_DISABLE"), Some(&"1".to_string()));
|
assert!(!envs.contains_key("LESAVKA_AUDIO_DISABLE"));
|
||||||
assert_eq!(envs.get("LESAVKA_MIC_DISABLE"), Some(&"1".to_string()));
|
assert!(!envs.contains_key("LESAVKA_MIC_DISABLE"));
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
envs.get("LESAVKA_CLIPBOARD_DELAY_MS"),
|
envs.get("LESAVKA_CLIPBOARD_DELAY_MS"),
|
||||||
Some(&"18".to_string())
|
Some(&"18".to_string())
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "lesavka_common"
|
name = "lesavka_common"
|
||||||
version = "0.11.18"
|
version = "0.11.19"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
build = "build.rs"
|
build = "build.rs"
|
||||||
|
|
||||||
|
|||||||
@ -17,6 +17,6 @@ mod tests {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn banner_includes_version() {
|
fn banner_includes_version() {
|
||||||
assert_eq!(banner("0.11.18"), "lesavka-common CLI (v0.11.18)");
|
assert_eq!(banner("0.11.19"), "lesavka-common CLI (v0.11.19)");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -10,7 +10,7 @@ bench = false
|
|||||||
|
|
||||||
[package]
|
[package]
|
||||||
name = "lesavka_server"
|
name = "lesavka_server"
|
||||||
version = "0.11.18"
|
version = "0.11.19"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
autobins = false
|
autobins = false
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user