diff --git a/Cheat Sheets/DevOps Linux/XDG.md b/Cheat Sheets/DevOps Linux/XDG.md new file mode 100644 index 000000000..2939f6711 --- /dev/null +++ b/Cheat Sheets/DevOps Linux/XDG.md @@ -0,0 +1,40 @@ +## CLI Tools + + # Open with registered program + xdg-open + + # Send mail + xdg-email --cc \ + --bcc \ + --subject \ + --body \ + --attach \ + + + # Query mime type registration + xdg-mime query default x-scheme-handler/https + + xdg-user-dir # Get home dir + + # Get special dir + xdg-user-dir + + xdg-screensaver suspend + xdg-screensaver resume + xdg-screensaver activate + xdg-screensaver lock + xdg-screensaver reset + xdg-screensaver status + +## Environment variables + +Typical XDG env vars + + XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg + XDG_CURRENT_DESKTOP=ubuntu:GNOME + XDG_DATA_DIRS=/usr/share/ubuntu:/usr/share/gnome:/home/lars/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop + XDG_MENU_PREFIX=gnome- + XDG_RUNTIME_DIR=/run/user/1000 + XDG_SESSION_CLASS=user + XDG_SESSION_DESKTOP=ubuntu + XDG_SESSION_TYPE=wayland