Skip to content

Commit 87518b1

Browse files
CzarekCzarek
authored andcommitted
There's no default implementation for OnProtocolExecution on linux,
you have to make OS system call on your own.
1 parent ecfe4de commit 87518b1

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

cefpython/cef3/linux/binaries_32bit/wxpython.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,8 +337,9 @@ def GetCookieManager(self, browser, mainUrl):
337337
return cookieManager
338338

339339
def OnProtocolExecution(self, browser, url, allowExecutionOut):
340-
# This callback seems not to work on Linux, see here:
341-
# http://www.magpcss.org/ceforum/viewtopic.php?f=6&t=10901
340+
# There's no default implementation for OnProtocolExecution on Linux,
341+
# you have to make OS system call on your own. You probably also need
342+
# to use LoadHandler::OnLoadError() when implementing this on Linux.
342343
print("RequestHandler::OnProtocolExecution()")
343344
print("url = %s" % url)
344345
if url.startswith("magnet:"):

cefpython/cef3/linux/binaries_64bit/wxpython.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,8 +337,9 @@ def GetCookieManager(self, browser, mainUrl):
337337
return cookieManager
338338

339339
def OnProtocolExecution(self, browser, url, allowExecutionOut):
340-
# This callback seems not to work on Linux, see here:
341-
# http://www.magpcss.org/ceforum/viewtopic.php?f=6&t=10901
340+
# There's no default implementation for OnProtocolExecution on Linux,
341+
# you have to make OS system call on your own. You probably also need
342+
# to use LoadHandler::OnLoadError() when implementing this on Linux.
342343
print("RequestHandler::OnProtocolExecution()")
343344
print("url = %s" % url)
344345
if url.startswith("magnet:"):

0 commit comments

Comments
 (0)