summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHüseyin ASLITÜRK <asliturk@hotmail.com>2020-05-05 22:20:00 +0300
committerAndreas Kling <kling@serenityos.org>2020-05-08 09:49:41 +0200
commita3367cf4fa7704cab64f7860d40caf2770c7d7cc (patch)
treeb59a4cc524841cc2b060613a37e307930a3cbe6d
parent39a8db936a5b22748be0ff251c8d7e96191dbeb4 (diff)
downloadserenity-a3367cf4fa7704cab64f7860d40caf2770c7d7cc.zip
LibCore: DesktopServices, open fonts with FontEditor
-rw-r--r--Libraries/LibCore/DesktopServices.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Libraries/LibCore/DesktopServices.cpp b/Libraries/LibCore/DesktopServices.cpp
index 3804dc62f0..e7b6848944 100644
--- a/Libraries/LibCore/DesktopServices.cpp
+++ b/Libraries/LibCore/DesktopServices.cpp
@@ -88,6 +88,9 @@ bool open_file_url(const URL& url)
if (url.path().to_lowercase().ends_with(".wav"))
return spawn("/bin/SoundPlayer", url.path());
+ if (url.path().to_lowercase().ends_with(".font"))
+ return spawn("/bin/FontEditor", url.path());
+
return spawn("/bin/TextEditor", url.path());
}