mirror of
https://github.com/LCE-Hub/LCE-Emerald-Launcher.git
synced 2026-09-23 08:32:51 +00:00
fix: improve Proton directory detection on Linux (#6)
This commit is contained in:
@@ -288,6 +288,7 @@ fn get_available_runners(app: AppHandle) -> Vec<Runner> {
|
|||||||
let steam_paths = [
|
let steam_paths = [
|
||||||
format!("{}/.local/share/Steam/compatibilitytools.d", home),
|
format!("{}/.local/share/Steam/compatibilitytools.d", home),
|
||||||
format!("{}/.local/share/Steam/steamapps/common", home),
|
format!("{}/.local/share/Steam/steamapps/common", home),
|
||||||
|
"/usr/share/Steam/compatibilitytools.d".to_string()
|
||||||
];
|
];
|
||||||
|
|
||||||
for base_path in steam_paths {
|
for base_path in steam_paths {
|
||||||
@@ -296,7 +297,7 @@ fn get_available_runners(app: AppHandle) -> Vec<Runner> {
|
|||||||
let path = entry.path();
|
let path = entry.path();
|
||||||
if path.is_dir() {
|
if path.is_dir() {
|
||||||
let name = entry.file_name().to_string_lossy().to_string();
|
let name = entry.file_name().to_string_lossy().to_string();
|
||||||
if name.contains("Proton") {
|
if name.to_lowercase().contains("proton") {
|
||||||
let path_str = path.to_string_lossy().to_string();
|
let path_str = path.to_string_lossy().to_string();
|
||||||
if !seen_paths.contains(&path_str) {
|
if !seen_paths.contains(&path_str) {
|
||||||
seen_paths.insert(path_str.clone());
|
seen_paths.insert(path_str.clone());
|
||||||
|
|||||||
Reference in New Issue
Block a user