Stop setting up user dirs

This commit is contained in:
Anthony Rose 2024-05-17 10:59:30 +01:00
parent b8d82bea60
commit b6eb47d59a
3 changed files with 0 additions and 32 deletions

View file

@ -55,26 +55,6 @@ then
install -d -m 0700 "$HOME/data"
fi
if [ -r "$XDG_CONFIG_HOME/user-dirs.dirs" ]
then
(
. "$XDG_CONFIG_HOME/user-dirs.dirs"
mkdir -p "$XDG_DESKTOP_DIR"
mkdir -p "$XDG_DOCUMENTS_DIR"
mkdir -p "$XDG_DOWNLOAD_DIR"
mkdir -p "$XDG_MUSIC_DIR"
mkdir -p "$XDG_PICTURES_DIR"
mkdir -p "$XDG_PUBLICSHARE_DIR"
mkdir -p "$XDG_TEMPLATES_DIR"
mkdir -p "$XDG_VIDEOS_DIR"
if [ -d "$HOME/Documents" ]; then rmdir "$HOME/Documents"; fi
if [ -d "$HOME/Music" ]; then rmdir "$HOME/Music" ; fi
if [ -d "$HOME/Pictures" ]; then rmdir "$HOME/Pictures" ; fi
if [ -d "$HOME/Videos" ]; then rmdir "$HOME/Videos" ; fi
)
fi
# Desktop files (used by desktop environments within both X11 and Wayland) are
# looked for in XDG_DATA_DIRS; make sure it includes the relevant directory for
# snappy applications' desktop files.

View file

@ -1,8 +0,0 @@
XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_DOCUMENTS_DIR="$HOME/data/Documents"
XDG_DOWNLOAD_DIR="$HOME/Downloads"
XDG_MUSIC_DIR="$HOME/data/Music"
XDG_PICTURES_DIR="$HOME/data/Pictures"
XDG_PUBLICSHARE_DIR="$HOME/Public"
XDG_TEMPLATES_DIR="$HOME/Templates"
XDG_VIDEOS_DIR="$HOME/data/Videos"

View file

@ -80,10 +80,6 @@
src: virtxp.sh
dest: "{{ ansible_env.HOME }}/.local/bin/virtxp"
mode: '0755'
- name: Create $XDG_CONFIG_HOME/user-dirs.dirs
ansible.builtin.copy:
src: user-dirs.dirs
dest: "{{ ansible_env.XDG_CONFIG_HOME }}/user-dirs.dirs"
- name: Create $XDG_CONFIG_HOME/containers/storage.conf
ansible.builtin.copy:
src: storage.conf