brain initiation
This commit is contained in:
30
20230523101440-xdg.org
Normal file
30
20230523101440-xdg.org
Normal file
@@ -0,0 +1,30 @@
|
||||
: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 <file>
|
||||
opens the file with the default program specified for the file's mimetype.
|
||||
|
||||
** xdg-open <file>
|
||||
opens the file with the default program specified for the file's mimetype.
|
||||
** xdg-mime
|
||||
*** query
|
||||
Performs a query, after:
|
||||
**** filetype <file>
|
||||
xdg-mime query filetype <file> gibt den Mimetype dieser Datei zurück
|
||||
**** default <Mimetype>
|
||||
xdg-mime query filetype <file> returns the mimetype of this file
|
||||
*** default
|
||||
xdg-mime default <program>.desktop <mimetype> sets the named program as the default program for the named mimetype, provided that this program has a ~.desktop~ entry in (user generated) ~/home/<user/.local/share/applications/~. The path whe ~.desktop~ files are stored by the system; /~/usr/share/applications/ or /usr/local/share/applications~/
|
||||
Reference in New Issue
Block a user