All apps/xdg-mime

xdg-mime

xdg-mime

Queries and sets file type associations on Linux desktops.

Runs as xdg-mime|Linux

Command form

ai-draft · 2 tasks · 3 fields

Query or set the default application for a MIME type.

Opens the form; the finished command lands at your prompt, unrun
otty gui xdg-mime

xdg-mime query

Query file type info
Query file type infoExample values, fixed in this page — nothing here reaches a terminal
Basic
Query*
string
TasksEach one presets the form for one job
Query
what
ParametersOnly these flags are editable in the form
Query
Use `filetype <file>` or `default <mimetype>`.
string · positional 0 · repeatable

xdg-mime default

Set default application
Set default applicationExample values, fixed in this page — nothing here reaches a terminal
Basic
Application (.desktop file)*
string
MIME types*
string
TasksEach one presets the form for one job
Set default
applicationmimetypes
ParametersOnly these flags are editable in the form
Application (.desktop file)
string · positional 0
MIME types
string · positional 1 · repeatable
SourcesEvery flag above is checked against these
fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

Before it fills your prompt, Otty checks the installed xdg-mime against its version. A form that does not match your version is not offered.