From 8941a2ae78cce847582c60cd85ee81c0e360158e Mon Sep 17 00:00:00 2001 From: "Lucas R. S. Suppes" Date: Wed, 13 Dec 2023 12:53:22 -0300 Subject: [PATCH] Changed find -printf to support file names with any filename --- distrobox-export | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/distrobox-export b/distrobox-export index 77c928c21d..ce7a82988e 100755 --- a/distrobox-export +++ b/distrobox-export @@ -348,10 +348,10 @@ export_application() { # by its launcher name. desktop_files=$( # shellcheck disable=SC2086,SC2038 - find ${canon_dirs} -type f -printf "%p\n" -o -type l -printf '"%p"\n' | - xargs -I{} grep -le "Exec=.*${exported_app}.*" -le "Name=.*${exported_app}.*" "{}" | - xargs -I{} grep -Le "Exec=.*${DISTROBOX_ENTER_PATH:-"distrobox-enter"}.*" "{}" | - xargs -I{} printf "%s@" {} + find ${canon_dirs} -type f -printf "\"%p\" \n" -o -type l -printf "\"%p\" \n"| + xargs grep -le "Exec=.*${exported_app}.*" -le "Name=.*${exported_app}.*" "{}" | + xargs grep -Le "Exec=.*${DISTROBOX_ENTER_PATH:-"distrobox-enter"}.*" "{}" | + xargs printf "%s@" {} ) # Ensure the app we're exporting is installed