diff --git a/src/Info.plist b/src/Info.plist
index 552b6fe70..58fffee5b 100644
--- a/src/Info.plist
+++ b/src/Info.plist
@@ -29,6 +29,17 @@
+ CFBundleURLTypes
+
+
+ CFBundleURLSchemes
+
+ magnet
+
+ CFBundleURLName
+ BitTorrent Magnet URL
+
+
CFBundleIconFile
qbittorrent_mac.icns
CFBundleInfoDictionaryVersion
diff --git a/src/qmacapplication.cpp b/src/qmacapplication.cpp
index a0e03560e..e7fe812ae 100644
--- a/src/qmacapplication.cpp
+++ b/src/qmacapplication.cpp
@@ -43,6 +43,10 @@ bool QMacApplication::event(QEvent * ev) {
case QEvent::FileOpen:
{
QString path = static_cast(ev)->file();
+ if(path.isEmpty()) {
+ // Get the url instead
+ path = static_cast(ev)->url();
+ }
qDebug("Received a mac file open event: %s", qPrintable(path));
emit newFileOpenMacEvent(path);
return true;