mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-20 09:49:15 +03:00
LibCore: DesktopServices, open fonts with FontEditor
This commit is contained in:
parent
39a8db936a
commit
a3367cf4fa
Notes:
sideshowbarker
2024-07-19 06:53:27 +09:00
Author: https://github.com/asliturk Commit: https://github.com/SerenityOS/serenity/commit/a3367cf4fa7 Pull-request: https://github.com/SerenityOS/serenity/pull/2146
@ -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());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user