New code for fix-tweaked-desktop-files #9

Merged
tio merged 4 commits from fix-tweaked-desktop-files into main 2022-09-20 00:10:54 +00:00
Showing only changes of commit ca46fdc0d2 - Show all commits

View File

@ -14,6 +14,8 @@ 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 "$user" "$flatpak_local" || { echo "failed to make directoris $user & $flatpak_local"; exit 1; }
detectfiles() { detectfiles() {
for file in "$user"/*.desktop; do for file in "$user"/*.desktop; do
name=$(basename "$file") || continue name=$(basename "$file") || continue