Update 2 files
- /home/.chezmoiremove - /home/.chezmoiscripts/universal/run_onchange_after_70-misc-bug-fixes.tmpl
This commit is contained in:
parent
5751c10091
commit
86ab5e8a07
2 changed files with 3 additions and 2 deletions
|
@ -22,6 +22,7 @@ Brewfile
|
|||
.m2
|
||||
.npmrc
|
||||
.parallels/
|
||||
.pearrc
|
||||
.pip
|
||||
.pnpm-state/
|
||||
.profile
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue