Compare commits
No commits in common. "1c40099be87db4597e3f6552b26db9132d0d06d9" and "6dea6c5a89207cfa590ad9c2c24c2bcdec6ec723" have entirely different histories.
1c40099be8
...
6dea6c5a89
|
@ -4,6 +4,8 @@ datastore="$HOME"/.local/share/fix-zombie-appicons
|
||||||
bakdir="$datastore"/backup
|
bakdir="$datastore"/backup
|
||||||
data="$datastore"/tweaked-desktop-files
|
data="$datastore"/tweaked-desktop-files
|
||||||
|
|
||||||
|
mkdir -p "$bakdir" || { echo "failed to make directory $bakdir"; exit 1; }
|
||||||
|
|
||||||
# Directories where desktop files are stored
|
# Directories where desktop files are stored
|
||||||
user="$HOME"/.local/share/applications
|
user="$HOME"/.local/share/applications
|
||||||
pacman_global=/usr/share/applications
|
pacman_global=/usr/share/applications
|
||||||
|
@ -12,8 +14,7 @@ flatpak_global=/var/lib/flatpak/exports/share/applications
|
||||||
flatpak_local="$HOME"/.local/share/flatpak/exports/share/applications
|
flatpak_local="$HOME"/.local/share/flatpak/exports/share/applications
|
||||||
snap=/var/lib/snapd/desktop/applications
|
snap=/var/lib/snapd/desktop/applications
|
||||||
|
|
||||||
mkdir -p "$bakdir" "$user" "$flatpak_local" ||
|
mkdir -p "$user" "$flatpak_local" || { echo "failed to make directoris $user & $flatpak_local"; exit 1; }
|
||||||
{ echo "failed to make directoris $bakdir, $user & $flatpak_local"; exit 1; }
|
|
||||||
|
|
||||||
detectfiles() {
|
detectfiles() {
|
||||||
for file in "$user"/*.desktop; do
|
for file in "$user"/*.desktop; do
|
||||||
|
@ -75,4 +76,4 @@ while read -r line; do
|
||||||
else
|
else
|
||||||
fixfiles
|
fixfiles
|
||||||
fi
|
fi
|
||||||
done < <(inotifywait -qm --format '%w' --include '\.desktop$' -e 'move,move_self,create,delete,delete_self,unmount' "${existing_dirs[@]}")
|
done < <(inotifywait -qm --format '%w' --include '\.desktop$' -e 'move,move_self,create,delete,delete_self,unmount' "${existing_dirs[@]}")
|
Loading…
Reference in New Issue
Block a user