Skip to content

Commit 563eefa

Browse files
authored
Links replaced by copy of files.
Signed-off-by: Kyuyrii <nyzukzybyakko@gmail.com>
1 parent 2f0af12 commit 563eefa

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/desktop-launch

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -337,14 +337,20 @@ done
337337
find "$SNAP_USER_COMMON/.local/share/icons/hicolor" -type f -name "steam_icon_*.png" | while read -r file; do
338338
dest="${file/$SNAP_USER_COMMON/$SNAP_REAL_HOME}"
339339
ensure_dir_exists "$(dirname $dest)"
340-
ln -sf "$file" "$dest"
340+
cp "$file" "$dest"
341341
done
342342

343343
# Link .desktop files to host
344-
ln -f $SNAP_USER_COMMON/.local/share/applications/* $SNAP_REAL_HOME/.local/share/applications/
344+
mkdir $SNAP_REAL_HOME/.local/share/applications/
345+
cp $SNAP_USER_COMMON/.local/share/applications/* $SNAP_REAL_HOME/.local/share/applications/
345346

346347
# Link .desktop files to $SNAP_REAL_HOME
347-
ln -f $SNAP_USER_COMMON/Desktop/* $SNAP_REAL_HOME/
348+
cp $SNAP_USER_COMMON/Desktop/* $SNAP_REAL_HOME/
349+
350+
#Delete the original icon and shortcut files so they don't get regenerated.
351+
rm -r $SNAP_USER_COMMON/.local/share/icons/*
352+
rm $SNAP_USER_COMMON/.local/share/applications/*
353+
rm $SNAP_USER_COMMON/Desktop/*
348354

349355
# GTK theme and behavior modifier
350356
# Those can impact the theme engine used by Qt as well

0 commit comments

Comments
 (0)