acestream:// links, allowing you to click links in your browser and have them automatically open in Aceplay.
How it works
When you register the protocol handler, Aceplay:- Creates a desktop entry file in
~/.local/share/applications/aceplay.desktop - Registers the
x-scheme-handler/acestreamMIME type usingxdg-mime - Associates acestream:// links with the Aceplay application
acestream:// link in any browser will automatically launch Aceplay and start playing the stream.
Installation
Run the install command
Use either the Or:Both commands perform the same action.
install or register-protocol command:Desktop entry format
The desktop entry file created by Aceplay follows the Desktop Entry Specification. Here’s what each field means:Application name displayed to the user
Command to execute when the protocol is triggered. The
%u is replaced with the acestream:// URLAlways
Application for executable programsWhether to run in a terminal. Set to
false for AceplayMIME type handler. Set to
x-scheme-handler/acestream for acestream:// URLsDesktop menu categories. Aceplay appears under Network and Video
How browser integration works
User clicks acestream:// link
When you click an
acestream:// link in a browser, the browser checks for registered protocol handlers.Desktop environment looks up handler
The desktop environment (GNOME, KDE, etc.) queries
xdg-mime for the default application for x-scheme-handler/acestream.Supported browsers
The protocol handler works with all major browsers on Linux:- Firefox - Prompts to choose application on first use
- Chrome/Chromium - Prompts to allow external protocol handler
- Brave - Same behavior as Chrome
- Edge - Same behavior as Chrome
- Opera - Prompts to allow external application
Some browsers may remember your choice. To change the default handler, you’ll need to update browser settings or re-register the protocol.
Uninstalling
To remove the protocol handler:Troubleshooting
Browser doesn't recognize acestream:// links
Browser doesn't recognize acestream:// links
Solution:
-
Re-run the install command:
- Restart your browser
-
Verify xdg-utils is installed:
-
Check the desktop file exists:
Wrong application opens acestream:// links
Wrong application opens acestream:// links
Solution:Set Aceplay as the default handler:You can verify the default handler:Should output:
aceplay.desktopPermission denied when creating desktop file
Permission denied when creating desktop file
Solution:Ensure the applications directory exists and is writable:Then re-run:
Browser shows 'No application found' error
Browser shows 'No application found' error
Solution:This usually means the Aceplay binary path in the desktop file is incorrect.
-
Check the desktop file:
-
Verify the
Execpath points to a valid Aceplay binary: -
Re-install to update the path:
Environment-specific notes
GNOME
GNOME uses the default xdg-mime system. The protocol handler should work immediately after installation.KDE Plasma
KDE may cache protocol handlers. After installation, you may need to:i3/Sway
Window managers without a desktop environment may require additional configuration. Ensurexdg-utils is installed and a default file manager is set.
Reference
- Desktop entry specification:
cmd/main.go:473-481 - Registration function:
cmd/main.go:473-508 - xdg-mime integration:
cmd/main.go:500-502