LibCore: DesktopServices, open fonts with FontEditor

This commit is contained in:
Hüseyin ASLITÜRK 2020-05-05 22:20:00 +03:00 committed by Andreas Kling
parent 39a8db936a
commit a3367cf4fa
Notes: sideshowbarker 2024-07-19 06:53:27 +09:00

View File

@ -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());
}