Update 2 files

- /home/.chezmoiremove
- /home/.chezmoiscripts/universal/run_onchange_after_70-misc-bug-fixes.tmpl
This commit is contained in:
Brian Zalewski 2023-01-12 15:17:08 +00:00
parent 5751c10091
commit 86ab5e8a07
2 changed files with 3 additions and 2 deletions

View file

@ -22,6 +22,7 @@ Brewfile
.m2
.npmrc
.parallels/
.pearrc
.pip
.pnpm-state/
.profile

View file

@ -30,11 +30,11 @@ else
fi
### Move ~/.gnome/apps/* to ~/.local/share/applications
if [ -d "$HOME/gnome/apps" ]; then
if [ -d "$HOME/.gnome/apps" ]; then
if [ ! -d "${XDG_DATA_HOME:-$HOME/.local/share}/applications" ]; then
mkdir -p "${XDG_DATA_HOME:-$HOME/.local/share}/applications"
fi
find "$HOME/gnome/apps" -mindepth 1 -maxdepth 1 -type f | while read DESKTOP_FILE; do
find "$HOME/.gnome/apps" -mindepth 1 -maxdepth 1 -type f | while read DESKTOP_FILE; do
logg info "Moving $DESKTOP_FILE to ${XDG_DATA_HOME:-$HOME/.local/share}/applications/$(basename "$DESKTOP_FILE")"
mv "$DESKTOP_FILE" "${XDG_DATA_HOME:-$HOME/.local/share}/applications/$(basename "$DESKTOP_FILE")"
done