Skip to content
Snippets Groups Projects
Commit 8a328a24 authored by yannick legoc's avatar yannick legoc
Browse files

Added /snap/bin/chromium in list of browser paths

parent 44c4d19a
No related branches found
No related tags found
No related merge requests found
......@@ -1514,14 +1514,17 @@ public abstract class Nomad {
public static Path getPathToBrowser() {
Path path = Paths.get("/usr/bin/chromium");
Path path = Paths.get("/snap/bin/chromium");
if (!Files.exists(path)) {
path = Paths.get("/usr/bin/chromium-browser");
path = Paths.get("/usr/bin/chromium");
if (!Files.exists(path)) {
path = Paths.get("/bin/firefox");
path = Paths.get("/usr/bin/chromium-browser");
if (!Files.exists(path)) {
return null;
}
path = Paths.get("/bin/firefox");
if (!Files.exists(path)) {
return null;
}
}
}
}
return path;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment