mirror of
https://github.com/djibux/BoilR.git
synced 2026-09-01 05:53:41 +02:00
Find flatpak steam location (#136)
This commit is contained in:
+7
-6
@@ -128,13 +128,14 @@ pub fn get_default_location() -> Result<String, Box<dyn Error + Sync + Send>> {
|
||||
#[cfg(target_os = "linux")]
|
||||
let path_string = {
|
||||
let home = std::env::var("HOME")?;
|
||||
String::from(
|
||||
Path::new(&home)
|
||||
let default_path = Path::new(&home)
|
||||
.join(".steam")
|
||||
.join("steam")
|
||||
.to_str()
|
||||
.unwrap_or(""),
|
||||
)
|
||||
.join("steam");
|
||||
if default_path.exists(){
|
||||
default_path.to_string_lossy().to_string()
|
||||
}else{
|
||||
Path::new(&home).join(".var").join("app").join("com.valvesoftware.Steam").join(".steam").join("steam").to_string_lossy().to_string()
|
||||
}
|
||||
};
|
||||
#[cfg(target_os = "macos")]
|
||||
let path_string = {
|
||||
|
||||
Reference in New Issue
Block a user