https://bugs.winehq.org/show_bug.cgi?id=58039 --- Comment #1 from Artem S. Tashkinov <aros(a)gmx.com> --- Of course I could use something like (courtesy of ChatGPT, not tested, use at your own risk): ```Bash #!/bin/bash dirA="A" # Set to your actual directories dirB="B" # Step 1: Find all files in B and store their hashes in an associative array declare -A hashes while IFS=" " read -r hash file; do hashes["$hash"]="$file" done < <(find "$dirB" -type f -exec sha256sum {} +) # Step 2: Find files in A, check for matching hashes, and replace with symlinks find "$dirA" -type f -exec sha256sum {} + | while IFS=" " read -r hash fileA; do if [[ -n "${hashes[$hash]}" ]]; then fileB="${hashes[$hash]}" absFileA=$(realpath "$fileA") absFileB=$(realpath "$fileB") if [ -f "$absFileA" ] && [ -f "$absFileB" ]; then rm "$absFileA" ln -s "$absFileB" "$absFileA" echo "Replaced $absFileA with symlink to $absFileB" fi fi done ``` to replace files in WINEPREFIX'es with their original systemwide counterparts but that needs to be done after every Wine update and this is just not nice. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.