diff options
author | Brendan Coles <bcoles@gmail.com> | 2020-04-22 21:56:43 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-04-23 09:50:19 +0200 |
commit | c3b2bfabfecbd55e8e0b1a7c17c63f37bf2c9be3 (patch) | |
tree | a9b100b1eed1aa045a903acc4c963a4ea91d1915 /Libraries/LibCore | |
parent | 418092a71aa2e2366a9c5d5a40ac1a390ca68ea2 (diff) | |
download | serenity-c3b2bfabfecbd55e8e0b1a7c17c63f37bf2c9be3.zip |
DesktopServices: Add irc URL protocol handler
Diffstat (limited to 'Libraries/LibCore')
-rw-r--r-- | Libraries/LibCore/DesktopServices.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Libraries/LibCore/DesktopServices.cpp b/Libraries/LibCore/DesktopServices.cpp index 5fb396593f..0f4d37ecd7 100644 --- a/Libraries/LibCore/DesktopServices.cpp +++ b/Libraries/LibCore/DesktopServices.cpp @@ -39,6 +39,9 @@ bool DesktopServices::open(const URL& url) if (url.protocol() == "file") return open_file_url(url); + if (url.protocol() == "irc") + return spawn("/bin/IRCClient", url.to_string()); + return spawn("/bin/Browser", url.to_string()); } |