XDG-LIST(1)
π
XDG-LIST(1) β like, the xdg-list manual page, bestie
okay so this is the page for xdg-list from the User Commands manual, and honestly? it's a little gem. let's get into it π«Ά
β¨ NAME β¨
xdg-list β lists desktop entry files. that's the whole job. she lists. she's an icon. π
πΈ SYNOPSIS πΈ
xdg-list [options]
π¦ DESCRIPTION π¦
xdg-list goes and finds desktop entry files β for auto-start, for x-sessions, or for applications β and then lists them out for you. literally that's it, that's the whole function, and she does it flawlessly. π
π OPTIONS π
these are the options xdg-list recognizes. and listen β xdg-list uses getopt_long_only(3), which means unambiguous abbreviations of long options are supported, AND long options with a single dash work too. so you can be lazy with your dashes and she won't judge. no cap. β¨
π COMMAND OPTIONS π
the default is to list desktop files for applications and give you output. but when you specify any of these bad boys, the command mode changes, okay? main character shift.
-l,--listβ outputs the list of effective lookup paths thatxdg-listis using. like, she shows you her search order. transparency queen.-h,--helpβ prints usage info to standard output and exits. bye bestie π-V,--versionβ prints detailed version information and exits. she tells you who she is.-C,--copyingβ prints detailed copying permissions and exits. legal era π
π§ GENERAL OPTIONS π§
the following general options are recognized:
-X,--xsessionβ list desktop entries (sorted by application id) in the x-sessions directory instead of the applications directory.-U,--autostartβ list desktop entries (sorted by application id) in the auto-start directory instead of the applications directory.-a,--allβ print all matching desktop entries, not just the first. greedy in the best way π--skip-dotβ skip directories in"XDG_CONFIG_DIRS"and"XDG_DATA_DIRS"that start with a dot. we don't see them. they're not here.--skip-tildeβ skip directories in"XDG_CONFIG_DIRS"and"XDG_DATA_DIRS"that start with a tilde, and entries that reside in"XDG_CONFIG_HOME"or"XDG_DATA_HOME". doubly skipping. overachiever π--show-dotβ if a directory starts with a dot and a matching desktop entry was found for that path, then print"./appid.desktop"rather than the full path. cute and compact.--show-tildeβ output a tilde when a directory matches the"HOME"directory.~supremacy π
the default is to list files (sorted by application id) in the applications directory. periodt.
π₯ OUTPUT π₯
the format of the output depends on whether xdg-list is operating in list mode or normal mode. two vibes. let's go.
β LIST OUTPUT β
when you run her in --list mode, xdg-list prints the full path of directories associated with auto-start, x-sessions, or applications β depending on the settings of the other options. the directories get printed one per line, in search order. and heads up: for applications, xdg-list will also list fallback directories in addition to applications directories. extra thorough, we love her π
an example follows:
$> xdg-list -l -U
/home/brian/.config/autostart
/etc/xdg/xde/autostart
/etc/xdg/autostart
β NORMAL OUTPUT β
when you run in application, auto-start, or x-session modes, xdg-list collects all of the desktop files by application id in accordance with XDG specifications. then she prints the list, one application per line, sorted by application id. on each line, the application id comes first, immediately followed by a colon ":" and one space, followed by the full path of the .desktop file associated with that application id. π
important, bestie: note that all application ids are printed β the .desktop file is not checked for any fields that would suppress their display on a launcher, session manager, or display manager. it's giving raw data, no filtering, no vibes-based hiding. π
an example follows:
$> xdg-list -U
at-spi-dbus-bus: /etc/xdg/autostart/at-spi-dbus-bus.desktop
at-spi-registryd: /etc/xdg/autostart/at-spi-registryd.desktop
deja-dup-monitor: /etc/xdg/autostart/deja-dup-monitor.desktop
dhcpcd-gtk: /etc/xdg/xde/autostart/dhcpcd-gtk.desktop
eekboard-autostart: /etc/xdg/autostart/eekboard-autostart.desktop
gnome-settings-daemon: /etc/xdg/autostart/gnome-settings-daemon.desktop
gsettings-data-convert: /etc/xdg/autostart/gsettings-data-convert.desktop
icewmtray: /etc/xdg/xde/autostart/icewmtray.desktop
pulseaudio: /etc/xdg/autostart/pulseaudio.desktop
smproxy: /etc/xdg/xde/autostart/smproxy.desktop
vboxclient: /etc/xdg/autostart/vboxclient.desktop
zeitgeist-datahub: /etc/xdg/autostart/zeitgeist-datahub.desktop
πΏ ENVIRONMENT πΏ
these are the environment variables xdg-list examines. she's nosy (affectionate):
HOMEβ used byxdg-listto determine the user's home directory.XDG_DATA_HOMEβ used byxdg-listto determine the user's XDG data directory. this defaults to$HOME/.local/share. theapplicationssub-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-listto determine the system XDG data directories. this defaults to/usr/local/share:/usr/share. theapplicationssub-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-listto 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-listto 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-list has no known bugs. not a single one. flawless behavior, we stan π§β¨
but fr fr, if you do find something, please report bugs to the source code repository at <https://github.com/bbidulock/xdg-launch/issues>. she wants to hear from you.
π SEE ALSO π
π AUTHOR π
Brian Bidulock <mailto:bidulock@openss7.org>
okay that's the whole page!! π this came from xdg-launch 1.12, dated 2022-01-28 β the XDG-LIST(1) page itself. go forth and list your desktop entries, bestie, you've got this ππ«Άβ¨
π¦ 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