From ca46fdc0d2f0930c3109ae384270144b20a4ba6f Mon Sep 17 00:00:00 2001 From: rokosun Date: Tue, 20 Sep 2022 01:44:56 +0200 Subject: [PATCH] Make directores where possible --- bin/periodic/fix-tweaked-desktop-files | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/periodic/fix-tweaked-desktop-files b/bin/periodic/fix-tweaked-desktop-files index b19f1e7..5a0608d 100755 --- a/bin/periodic/fix-tweaked-desktop-files +++ b/bin/periodic/fix-tweaked-desktop-files @@ -14,6 +14,8 @@ flatpak_global=/var/lib/flatpak/exports/share/applications flatpak_local="$HOME"/.local/share/flatpak/exports/share/applications snap=/var/lib/snapd/desktop/applications +mkdir -p "$user" "$flatpak_local" || { echo "failed to make directoris $user & $flatpak_local"; exit 1; } + detectfiles() { for file in "$user"/*.desktop; do name=$(basename "$file") || continue