some random flatpak crash
This commit is contained in:
parent
01ca179ee3
commit
503c52fb4d
1 changed files with 14 additions and 1 deletions
|
@ -35,6 +35,7 @@ pub async fn find(log: &str, data: &Data) -> Result<Vec<(String, String)>> {
|
||||||
checksum_mismatch,
|
checksum_mismatch,
|
||||||
nvidia_linux,
|
nvidia_linux,
|
||||||
linux_openal,
|
linux_openal,
|
||||||
|
flatpak_crash,
|
||||||
];
|
];
|
||||||
|
|
||||||
let mut res: Vec<(String, String)> = issues.iter().filter_map(|issue| issue(log)).collect();
|
let mut res: Vec<(String, String)> = issues.iter().filter_map(|issue| issue(log)).collect();
|
||||||
|
@ -284,7 +285,7 @@ fn wrong_java(log: &str) -> Issue {
|
||||||
|
|
||||||
let issue = (
|
let issue = (
|
||||||
"Java compatibility check skipped".to_string(),
|
"Java compatibility check skipped".to_string(),
|
||||||
"The Java major version may not work with your Minecraft instance. Please switch to a compatible version".to_string()
|
"The Java major version may not work with your Minecraft instance. Please switch to a compatible version.".to_string()
|
||||||
);
|
);
|
||||||
|
|
||||||
log.contains("Java major version is incompatible. Things might break.")
|
log.contains("Java major version is incompatible. Things might break.")
|
||||||
|
@ -443,3 +444,15 @@ hrtf=true```"
|
||||||
let found = log.contains("[libopenal.so");
|
let found = log.contains("[libopenal.so");
|
||||||
found.then_some(issue)
|
found.then_some(issue)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn flatpak_crash(log: &str) -> Issue {
|
||||||
|
let issue = (
|
||||||
|
"Flatpak crash".to_string(),
|
||||||
|
"To fix this crash, disable \"Fallback to X11 Windowing System\" in Flatseal.".to_string(),
|
||||||
|
);
|
||||||
|
|
||||||
|
let found = log.contains(
|
||||||
|
"Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable",
|
||||||
|
) || log.contains("Could not open X display connection");
|
||||||
|
found.then_some(issue)
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue