From a3367cf4fa7704cab64f7860d40caf2770c7d7cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=BCseyin=20ASLIT=C3=9CRK?= Date: Tue, 5 May 2020 22:20:00 +0300 Subject: [PATCH] LibCore: DesktopServices, open fonts with FontEditor --- Libraries/LibCore/DesktopServices.cpp | 3 +++ 1 file changed, 3 insertions(+) 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()); }