XDG-WHEREIS(1)
π xdg-whereis(1) β the girlies' guide to finding your desktop files
okay so bestie, welcome to xdg-whereis β the manual page, the myth, the legend. It's a User Commands situation, section 1, and it's here to help you track down desktop entry files for an application id. Think of it as Find My Friends but for your .desktop files. No cap. πβ¨
π NAME π
xdg-whereis β locate desktop entry files for an application id.
Like, it literally finds where your app's stuff lives. Iconic behaviour.
πΈ SYNOPSIS πΈ
xdg-whereis [options] [--] APPID [...]
That's it. That's the whole ritual. π
π¦ DESCRIPTION π¦
So here's the tea: xdg-whereis locates the desktop entry, binary, source and manual files for the application identifiers you hand it. She's thorough like that.
First, the names you supply get stripped β leading path-name components get yeeted, and any (single) trailing extension of the form .ext (for example: .c) gets chopped off too. Then xdg-whereis goes hunting for the entry you want in the standard Linux places, plus the places spelled out by "XDG_CONFIG_DIRS", "XDG_DATA_DIRS", "XDG_CONFIG_HOME", "XDG_DATA_HOME", "PATH" and "MANPATH".
Bestie she is searching searching. π§ββοΈ
π ARGUMENTS π
The program accepts the following arguments:
- APPID β specifies the application identifier of an XDG desktop application to locate. And APPID can be one of the following:
- the name of a desktop entry file without the
.desktopsuffix (e.g."gvim"); the name may contain a"/"if it is specified relative to a user or system application directory, in which case it must not start with a"/"or".". - the name of a desktop entry file with the
.desktopsuffix (e.g."gvim.desktop"); the same restrictions as (1), above, apply; or, - the full path (absolute or relative) and filename of a desktop entry file (e.g.
/usr/share/applications/gvim.desktop); the full path must contain at least one"/"and start with either a"/"or a".".
- the name of a desktop entry file without the
β οΈ Providing a non-option application identifier argument is mandatory unless the--execor--appidoptions are specified. Don't leave her hanging with no APPID, she will not know what to do with herself. π
β¨ OPTIONS β¨
The options detailed below are recognized by xdg-whereis. And here's a fun fact for the group chat: xdg-whereis uses getopt_long_only(3), so unambiguous abbreviations of long options β and long options with a single dash β are also supported. Fancy! π
π₯ COMMAND OPTIONS π₯
The default vibe is to match the APPID and provide output. But when any of the following options are specified, the command mode changes β main character switch-up:
-l,--listβ output list of effective lookup paths thatxdg-whereisis using. Basically she shows you her whole search itinerary. πΊοΈ-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β treat APPID as an"XSession"identifier instead of an"Application"identifier.-U,--autostartβ treat APPID as an"Autostart"identifier instead of an"Application"identifier.
π ENVIRONMENT π
The following environment variables are examined by xdg-whereis:
HOMEβ used byxdg-whereisto determine the user's home directory.XDG_DATA_HOMEβ used byxdg-whereisto determine the user's XDG data directory. This defaults to$HOME/.local/share. Theapplicationssubdirectory 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-whereisto determine the system XDG data directories. This defaults to/usr/local/share:/usr/share. Theapplicationssubdirectory 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-whereisto determine the user's XDG configuration directory. This defaults to$HOME/.config. Theautostartsubdirectory 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-whereisto determine the system XDG configuration directories. This defaults to/etc/xdg. Theautostartsubdirectory under these directories are searched in order to locate desktop entry files. See the XDG Desktop Entry file specification for more information.
π«Ά note the difference bestie:XDG_DATA_*looks inapplications,XDG_CONFIG_*looks inautostart. Different subdirectories, different eras.
π BUGS π
xdg-whereis has no known bugs. Not one! She's flawless, she woke up like this. π
Please report bugs to the source code repository at <https://github.com/bbidulock/xdg-launch/issues>.
β SEE ALSO β
(The holy trinity of "where is it though". iykyk.)
π AUTHOR π
Brian Bidulock <mailto:bidulock@openss7.org>
and that's the whole page, bestie β no notes, ate and left no crumbs. π
xdg-launch 1.12, dated 2022-01-28 β that's the source/version and date, and yes we're crediting her properly because she deserves it. mwah ππ·
π¦ 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