1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 06:48:12 +00:00

FileManager: Open .html files in Browser instead of "html"

This commit is contained in:
Andreas Kling 2019-10-07 19:52:35 +02:00
parent 6287c2b270
commit 90cd363a8e

View file

@ -55,7 +55,7 @@ void DirectoryView::handle_activation(const GModelIndex& index)
if (path.to_lowercase().ends_with(".html")) {
if (fork() == 0) {
int rc = execl("/bin/html", "/bin/html", path.characters(), nullptr);
int rc = execl("/bin/Browser", "/bin/Browser", path.characters(), nullptr);
if (rc < 0)
perror("exec");
ASSERT_NOT_REACHED();