:PROPERTIES: :ID: 6c1849a8-ab61-4ab1-b2e8-97d1d0dfb0fd :END: #+title: xdg #+filetags: :linux: XDG is a tool that works with mimetypes. With the aid of xdg standard programs can be assigned to certain mimetypes, standard programs can be queried or mimetypes of programs can be displayed All standard programs are in the file #+begin_src bash ~.config/mimeapps.list #+end_src There also the input of xdg-mime default is stored. * Command ** xdg-open opens the file with the default program specified for the file's mimetype. ** xdg-open opens the file with the default program specified for the file's mimetype. ** xdg-mime *** query Performs a query, after: **** filetype xdg-mime query filetype gibt den Mimetype dieser Datei zurück **** default xdg-mime query filetype returns the mimetype of this file *** default xdg-mime default .desktop sets the named program as the default program for the named mimetype, provided that this program has a ~.desktop~ entry in (user generated) ~/home/