handlr
modern alternative to xdg-utils for managing default applications on Linux
TLDR
Open a URL in the default application
SYNOPSIS
handlr command [arguments]
DESCRIPTION
handlr is a modern alternative to xdg-utils for managing default applications on Linux. It handles file and URL associations through MIME types and file extensions.
The tool modifies ~/.config/mimeapps.list (and optionally the deprecated ~/.local/share/applications/mimeapps.list) to set default applications. It supports both specific file extensions (.pdf, .png) and MIME type patterns (audio/*, video/*).
handlr aims to be simpler and more predictable than xdg-open and xdg-mime, with better terminal integration and clear output.
PARAMETERS
open PATH|URL
Open file or URL with default applicationset MIME|EXT HANDLER
Set default application for MIME type or extensionget MIME|EXT
Get default application for MIME type or extensionlist
List all configured default applicationsunset MIME|EXT
Remove default application settingadd MIME|EXT HANDLER
Add handler to list without setting as default
CAVEATS
Requires .desktop files to be properly installed in standard locations. May not be recognized by all desktop environments. Some applications may have their own file association mechanisms that override system defaults.
HISTORY
handlr was created as a Rust-based alternative to the xdg-utils suite, focusing on simplicity and reliability. It addresses common frustrations with xdg-open's unpredictable behavior and complex fallback mechanisms.
