Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src-tauri/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ use tauri::Manager;

mod backend;
mod codex;
mod codex_home;
mod codex_config;
mod codex_home;
#[cfg(not(target_os = "windows"))]
#[path = "dictation.rs"]
mod dictation;
Expand All @@ -20,20 +20,20 @@ mod remote_backend;
mod rules;
mod settings;
mod state;
mod terminal;
mod window;
mod storage;
mod terminal;
mod types;
mod utils;
mod window;
mod workspaces;

#[cfg_attr(mobile, tauri::mobile_entry_point)]
pub fn run() {
#[cfg(target_os = "linux")]
{
// Avoid WebKit compositing issues on some Linux setups (GBM buffer errors).
if std::env::var_os("WEBKIT_DISABLE_COMPOSITING_MODE").is_none() {
std::env::set_var("WEBKIT_DISABLE_COMPOSITING_MODE", "1");
// Avoid WebKit compositing issues on NVIDIA Linux setups (GBM buffer errors).
if std::env::var_os("__NV_PRIME_RENDER_OFFLOAD").is_none() {
std::env::set_var("__NV_PRIME_RENDER_OFFLOAD", "1");
}
}

Expand Down