Difference between revisions of "xdg-open"
Jump to navigation
Jump to search
(Created page with "category:software category:open-source ==About== {{fmt/quote|xdg-open is a command-line utility for opening files and URLs using the default applications as specif...") |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
[[category:open-source]] | [[category:open-source]] | ||
==About== | ==About== | ||
− | {{fmt/quote|[[xdg-open]] is a command-line utility for opening files and URLs using the default applications as specified by the user's desktop environment.}}<ref name=chatgpt1 /> | + | {{fmt/quote|[[xdg-open]] is a command-line utility for opening files and URLs using the default applications as specified by the user's desktop environment.}}<ref name=chatgpt1 /> Its current implementation (as of Ubuntu-MATE 23.10) is as a [[bash]] script which determines which desktop environment (DE) is running, and then delegates to the appropriate command for that DE. In other words, it's a slightly klugey bit of glue that deals with the lack of a standard URL-opening function across different DEs. |
==How To== | ==How To== | ||
− | + | * [[/how to/add custom protocol|add a custom protocol]] | |
− | + | ==Delegation== | |
− | + | Some of the commands to which [[xdg-open]] will delegate: | |
− | + | * {{l/cmd|enlightenment_open}} (e) | |
− | + | * {{l/cmd|exo-open}} ([[XFCE]]) | |
− | + | * {{l/cmd|gio}} open (Gnome3, [[MATE]], XFCE) | |
− | + | * {{l/cmd|gvfs-open}} (Gnome3, MATE, XFCE) | |
− | + | * {{l/cmd|kde-open}} ([[KDE]]) | |
− | + | * {{l/cmd|kfmclient}} (KDE) | |
− | + | * {{l/cmd|gnome-open}} (Gnome) | |
− | + | * {{l/cmd|open_generic}} (e, Gnome, Gnome3, MATE, XFCE) | |
− | |||
− | |||
− | |||
− | * | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | * | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | * | ||
− | |||
− | |||
− | |||
− | |||
− | |||
==Footnotes== | ==Footnotes== | ||
<references> | <references> | ||
<ref name=chatgpt1>'''2024-01-01''' ChatGPT 3.5, in response to "How can I add a custom protocol to xdg-open?"</ref> | <ref name=chatgpt1>'''2024-01-01''' ChatGPT 3.5, in response to "How can I add a custom protocol to xdg-open?"</ref> | ||
</references> | </references> |
Latest revision as of 00:47, 3 January 2024
About
«xdg-open is a command-line utility for opening files and URLs using the default applications as specified by the user's desktop environment.»[1] Its current implementation (as of Ubuntu-MATE 23.10) is as a bash script which determines which desktop environment (DE) is running, and then delegates to the appropriate command for that DE. In other words, it's a slightly klugey bit of glue that deals with the lack of a standard URL-opening function across different DEs.
How To
Delegation
Some of the commands to which xdg-open will delegate:
- enlightenment_open (e)
- exo-open (XFCE)
- gio open (Gnome3, MATE, XFCE)
- gvfs-open (Gnome3, MATE, XFCE)
- kde-open (KDE)
- kfmclient (KDE)
- gnome-open (Gnome)
- open_generic (e, Gnome, Gnome3, MATE, XFCE)
Footnotes
- ↑ 2024-01-01 ChatGPT 3.5, in response to "How can I add a custom protocol to xdg-open?"