summaryrefslogtreecommitdiffhomepage
path: root/packages/desktop/src-tauri
diff options
context:
space:
mode:
authorBrendan Allan <[email protected]>2026-02-18 16:10:07 +0800
committerBrendan Allan <[email protected]>2026-02-18 16:10:07 +0800
commit5aeb305344830aec9a3c8f84f595487bfd930417 (patch)
treef3c379deec93ca5a7c451a332f8d3ea194653450 /packages/desktop/src-tauri
parent6eb043aedb81705aa2fa47629d8c778c16b307f9 (diff)
downloadopencode-5aeb305344830aec9a3c8f84f595487bfd930417.tar.gz
opencode-5aeb305344830aec9a3c8f84f595487bfd930417.zip
desktop: temporarily disable wsl
Diffstat (limited to 'packages/desktop/src-tauri')
-rw-r--r--packages/desktop/src-tauri/src/cli.rs14
1 files changed, 2 insertions, 12 deletions
diff --git a/packages/desktop/src-tauri/src/cli.rs b/packages/desktop/src-tauri/src/cli.rs
index cb6d3ad37..91e1787df 100644
--- a/packages/desktop/src-tauri/src/cli.rs
+++ b/packages/desktop/src-tauri/src/cli.rs
@@ -9,7 +9,6 @@ use std::os::unix::process::ExitStatusExt;
use std::sync::Arc;
use std::{process::Stdio, time::Duration};
use tauri::{AppHandle, Manager, path::BaseDirectory};
-use tauri_plugin_store::StoreExt;
use tauri_specta::Event;
use tokio::{
io::{AsyncBufRead, AsyncBufReadExt, BufReader},
@@ -20,7 +19,6 @@ use tokio::{
use tokio_stream::wrappers::ReceiverStream;
use tracing::Instrument;
-use crate::constants::{SETTINGS_STORE, WSL_ENABLED_KEY};
const CLI_INSTALL_DIR: &str = ".opencode/bin";
const CLI_BINARY_NAME: &str = "opencode";
@@ -202,16 +200,8 @@ fn get_user_shell() -> String {
std::env::var("SHELL").unwrap_or_else(|_| "/bin/sh".to_string())
}
-fn is_wsl_enabled(app: &tauri::AppHandle) -> bool {
- let Ok(store) = app.store(SETTINGS_STORE) else {
- return false;
- };
-
- store
- .get(WSL_ENABLED_KEY)
- .as_ref()
- .and_then(|value| value.as_bool())
- .unwrap_or(false)
+fn is_wsl_enabled(_app: &tauri::AppHandle) -> bool {
+ false
}
fn shell_escape(input: &str) -> String {