Skip to content

Commit 5aeb305

Browse files
committed
desktop: temporarily disable wsl
1 parent 6eb043a commit 5aeb305

2 files changed

Lines changed: 4 additions & 14 deletions

File tree

packages/app/src/components/settings-general.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ export const SettingsGeneral: Component = () => {
431431

432432
<SoundsSection />
433433

434-
<Show when={platform.platform === "desktop" && platform.os === "windows" && platform.getWslEnabled}>
434+
{/*<Show when={platform.platform === "desktop" && platform.os === "windows" && platform.getWslEnabled}>
435435
{(_) => {
436436
const [enabledResource, actions] = createResource(() => platform.getWslEnabled?.())
437437
const enabled = () => (enabledResource.state === "pending" ? undefined : enabledResource.latest)
@@ -457,7 +457,7 @@ export const SettingsGeneral: Component = () => {
457457
</div>
458458
)
459459
}}
460-
</Show>
460+
</Show>*/}
461461

462462
<UpdatesSection />
463463

packages/desktop/src-tauri/src/cli.rs

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ use std::os::unix::process::ExitStatusExt;
99
use std::sync::Arc;
1010
use std::{process::Stdio, time::Duration};
1111
use tauri::{AppHandle, Manager, path::BaseDirectory};
12-
use tauri_plugin_store::StoreExt;
1312
use tauri_specta::Event;
1413
use tokio::{
1514
io::{AsyncBufRead, AsyncBufReadExt, BufReader},
@@ -20,7 +19,6 @@ use tokio::{
2019
use tokio_stream::wrappers::ReceiverStream;
2120
use tracing::Instrument;
2221

23-
use crate::constants::{SETTINGS_STORE, WSL_ENABLED_KEY};
2422

2523
const CLI_INSTALL_DIR: &str = ".opencode/bin";
2624
const CLI_BINARY_NAME: &str = "opencode";
@@ -202,16 +200,8 @@ fn get_user_shell() -> String {
202200
std::env::var("SHELL").unwrap_or_else(|_| "/bin/sh".to_string())
203201
}
204202

205-
fn is_wsl_enabled(app: &tauri::AppHandle) -> bool {
206-
let Ok(store) = app.store(SETTINGS_STORE) else {
207-
return false;
208-
};
209-
210-
store
211-
.get(WSL_ENABLED_KEY)
212-
.as_ref()
213-
.and_then(|value| value.as_bool())
214-
.unwrap_or(false)
203+
fn is_wsl_enabled(_app: &tauri::AppHandle) -> bool {
204+
false
215205
}
216206

217207
fn shell_escape(input: &str) -> String {

0 commit comments

Comments
 (0)