HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

xdg-user-dirs-update — Update XDG user directories. See also: `xdg-user-dir`. More information: <https://manned.org/xdg-use

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandupdatexdgdirectoriesxdg-user-dirs-updatecliusersee
linux

Problem

How to use the xdg-user-dirs-update command: Update XDG user directories. See also: xdg-user-dir. More information: <https://manned.org/xdg-user-dirs-update>.

Solution

xdg-user-dirs-update — Update XDG user directories. See also: xdg-user-dir. More information: <https://manned.org/xdg-user-dirs-update>.

Change XDG's DESKTOP directory to the specified directory:
xdg-user-dirs-update --set DESKTOP "/{{path/to/directory}}"


Write the result to the specified dry-run-file instead of the user-dirs.dirs file:
xdg-user-dirs-update --dummy-output "{{path/to/dry_run_file}}" --set {{xdg_user_directory}} "/{{path/to/directory}}"

Code Snippets

Change XDG's DESKTOP directory to the specified directory

xdg-user-dirs-update --set DESKTOP "/{{path/to/directory}}"

Write the result to the specified dry-run-file instead of the `user-dirs.dirs` file

xdg-user-dirs-update --dummy-output "{{path/to/dry_run_file}}" --set {{xdg_user_directory}} "/{{path/to/directory}}"

Context

tldr-pages: linux/xdg-user-dirs-update

Revisions (0)

No revisions yet.