alexhua / Aria2-Explorer

An aria2 download task management extension for chromium based browser
https://www.aria2e.com/
BSD 3-Clause "New" or "Revised" License
783 stars 66 forks source link

[Feature Request] Start Motrix from extension #144

Closed yswtrue closed 11 months ago

yswtrue commented 1 year ago

Motivation Auto start Motrix if it has not started

Feature Description

Is the solution code ready No

Willing to maintain the related code in the future Yes

Additional context

yswtrue commented 1 year ago

can Native Message resolve this problem?

alexhua commented 1 year ago

can Native Message resolve this problem?

Maybe not. I think this feature is out of extension's scope. At first, we need a message host or Motrix runing as a message host.

alexhua commented 11 months ago

After the release of V2.1, you can now register Motrix as the default application for the aria2:// protocol.

Registration Method: (For Windows users)

  1. Save the following code as aria2.reg,
  2. Replace D:\Motrix\Motrix.exe with your Motrix installation path in the last line below,
  3. Double-click aria2.reg to register.

Subsequently, you can start Motrix by clicking Start Aria2 from the extension's option menu.

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\aria2]
@="\"URL:Aria2\""
"URL Protocol"=""

[HKEY_CLASSES_ROOT\aria2\DefaultIcon]
@="\"Motrix.exe,1\""

[HKEY_CLASSES_ROOT\aria2\shell]

[HKEY_CLASSES_ROOT\aria2\shell\open]

[HKEY_CLASSES_ROOT\aria2\shell\open\command]
@="D:\\Motrix\\Motrix.exe %1"

Reference: How to Register an Application to a URI Scheme