XDG-FIND(1)
πΈ XDG-FIND(1) β User Commands β find desktop entries by criteria πΈ
πΊ NAME πΊ
xdg-find β find desktop entries by criteria.
π¦ SYNOPSIS π¦
xdg-find [options] [--] TYPE [...]
π DESCRIPTION π
Okay bestie, xdg-find takes one or more arguments. For each of its arguments, it locates all desktop entries of the specified types and lists them on standard output. It does this by searching for a desktop entry in the appropriate sub-directories of the "XDG_CONFIG_DIRS", "XDG_CONFIG_HOME", "XDG_DATA_DIRS" and "XDG_DATA_HOME" environment variables using the same algorithms as xdg-launch(1).
π ARGUMENTS π
The program accepts the following arguments:
TYPEβ specifies the type of application for which to show or setAPPIDas the preferred application. The application type,TYPE, can be one of the following:- A recognized XDG category name. For recognized XDG category names, see "XDG CATEGORIES".
- A mime (content) type. All mime types have a
/in their names and are thus distinguished from XDG categories. The content type cannot contain wild cards (i.e. it cannot contain*).
π OPTIONS π
The options that are detailed below are recognized by xdg-find. xdg-find uses getopt_long_only(3), so unambiguous abbreviations of long options and long options with a single dash are also supported.
π COMMAND OPTIONS π
The default is to find all desktop entries of the type or types specified, TYPE. When any of the following options are specified, the mode changes:
-l,--listβ output list of effective lookup paths thatxdg-findis using.-h,--helpβ prints usage information to standard output and exits.-V,--versionβ prints detailed version information and exits.-C,--copyingβ prints detailed copying permissions and exits.
π GENERAL OPTIONS π
The following general options are recognized:
-X,--xsessionβ also find applications that are"XSession"entries instead of just"Application"entries.-U,--autostartβ also find applications that are"Autostart"entries instead of just"Application"entries.-A,--applicationβ also find applications when--xsessionor--autostartoptions are specified.-a,--allβ print all matching desktop entries, not just the first.-e,--desktop DESKTOP[;DESKTOP[...]]β exclude entries that are not to be included in the semi-colon separated list of desktop environments,DESKTOP, specified.-n,--nodisplayβ exclude entries that are not to be shown in menus. That is, they have the"NoDisplay"key field set to true.
π EXAMPLES π
The page says: "Following are some examples of invocation and output:" β and then this copy has no example lines after it. That's the whole section, bestie ππ.
π§ ENVIRONMENT π§
The following environment variables are examined by xdg-find:
HOMEβ used byxdg-findto determine the user's home directory.XDG_DATA_HOMEβ used byxdg-findto determine the user's XDG data directory. This defaults to$HOME/.local/share. Theapplications(orxsessions) sub-directory under this directory is the first searched to locate desktop entry files. See the XDG Desktop Entry file specification for more information.XDG_DATA_DIRSβ used byxdg-findto determine the system XDG data directories. This defaults to/usr/local/share:/usr/share. Theapplications(orxsessions) sub-directory under these directories are searched in order to locate desktop entry files. See the XDG Desktop Entry file specification for more information.XDG_CONFIG_HOMEβ used byxdg-findto determine the user's XDG configuration directory. This defaults to$HOME/.config. Theautostartsub-directory under this directory is the first searched to locate desktop entry files. See the XDG Desktop Entry file specification for more information.XDG_CONFIG_DIRSβ used byxdg-findto determine the system XDG configuration directories. This defaults to/etc/xdg. Theautostartsub-directory under these directories are searched in order to locate desktop entry files. See the XDG Desktop Entry file specification for more information.
π BUGS π
xdg-find has no known bugs. Please report bugs to the source code repository at <https://github.com/bbidulock/xdg-launch/issues>.
It can likely be considered a bug that xdg-find does not provide any other criteria on which to search other than supported mime type and XDG category.
π SEE ALSO π
π AUTHOR π
Brian Bidulock <mailto:bidulock@openss7.org>
From xdg-launch 1.12, dated 2022-01-28, and filed under XDG-FIND(1) β xoxo, your terminal bestie ππ«Άβ¨ periodt
π¦ where this page comes from
- nixos 26.05: xdg-launch 1.12
- nixpkgs unstable: xdg-launch 1.12
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms