Difference between revisions of "xdg-open"

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
Jump to navigation Jump to search
 
Line 3: Line 3:
 
==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 /> 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.
 
{{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==
* [[/notes]]
+
* [[/how to/add custom protocol|add a custom protocol]]
 
==Delegation==
 
==Delegation==
 
Some of the commands to which [[xdg-open]] will delegate:
 
Some of the commands to which [[xdg-open]] will delegate:

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:

Footnotes

  1. 2024-01-01 ChatGPT 3.5, in response to "How can I add a custom protocol to xdg-open?"