"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "extensions/desktop/common/desktop-exports" between
snapcraft-4.5.1.tar.gz and snapcraft-4.5.2.tar.gz

About: Snapcraft is a build and packaging tool that makes it easy to incorporate components from different sources and build technologies or solutions.

desktop-exports  (snapcraft-4.5.1):desktop-exports  (snapcraft-4.5.2)
skipping to change at line 225 skipping to change at line 225
if [[ "$b" != "." && -e "$REALHOME/$b" ]]; then if [[ "$b" != "." && -e "$REALHOME/$b" ]]; then
[ -d "$HOME/$b" ] && rmdir "$HOME/$b" 2> /dev/null [ -d "$HOME/$b" ] && rmdir "$HOME/$b" 2> /dev/null
[ ! -e "$HOME/$b" ] && ln -s "$REALHOME/$b" "$HOME/$b" [ ! -e "$HOME/$b" ] && ln -s "$REALHOME/$b" "$HOME/$b"
fi fi
done done
else else
# If we aren't creating new links, check if we have content saved in old locat ions and move it # If we aren't creating new links, check if we have content saved in old locat ions and move it
for ((i = 0; i < ${#XDG_SPECIAL_DIRS[@]}; i++)); do for ((i = 0; i < ${#XDG_SPECIAL_DIRS[@]}; i++)); do
old="${XDG_SPECIAL_DIRS_INITIAL_PATHS[$i]}" old="${XDG_SPECIAL_DIRS_INITIAL_PATHS[$i]}"
new="${XDG_SPECIAL_DIRS_PATHS[$i]}" new="${XDG_SPECIAL_DIRS_PATHS[$i]}"
if [ -L "$old" ] && [ -d "$new" ] && [ "$(readlink "$old")" != "$new" ]; the if [ -L "$old" ] && [ -d "$new" ] && [ "$(readlink "$old" 2>/dev/null)" != "
n $new" ] &&
(is_subpath "$old" "$SNAP_USER_DATA" || is_subpath "$old" "$SNAP_USER_C
OMMON"); then
mv -vn "$old"/* "$new"/ 2>/dev/null mv -vn "$old"/* "$new"/ 2>/dev/null
elif [ -d "$old" ] && [ -d "$new" ] && [ "$old" != "$new" ] && elif [ -d "$old" ] && [ -d "$new" ] && [ "$old" != "$new" ] &&
(is_subpath "$old" "$SNAP_USER_DATA" || is_subpath "$old" "$SNAP_USER_C OMMON"); then (is_subpath "$old" "$SNAP_USER_DATA" || is_subpath "$old" "$SNAP_USER_C OMMON"); then
mv -vn "$old"/* "$new"/ 2>/dev/null mv -vn "$old"/* "$new"/ 2>/dev/null
fi fi
done done
fi fi
# If detect wayland server socket, then set environment so applications prefer # If detect wayland server socket, then set environment so applications prefer
# wayland, and setup compat symlink (until we use user mounts. Remember, # wayland, and setup compat symlink (until we use user mounts. Remember,
 End of changes. 1 change blocks. 
2 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)