PepMiniiso/pepscripts/06setup-snap-install

19 lines
663 B
Bash
Executable File

#!/bin/sh -e
# SPDX-License-Identifier: GPL-3.0-or-later
#
# SPDX-FileCopyrightText: 2023 PeppermintOS Team (peppermintosteam@proton.me)
# This script copies a file to the chroot and runs commands during the Debian installation process.
# Workaround for using snapd on debian. Thank You - @stevesveryown and peppermint team..
cd /target
[ ! -e /etc/skel/.local/share ] && mkdir -p /etc/skel/.local/share
[ ! -e /var/lib/snapd/desktop/applications ] &&
mkdir -p /var/lib/snapd/desktop/applications &&
chmod 777 /var/lib/snapd/desktop/applications
ln -s /var/lib/snapd/desktop/applications /etc/skel/.local/share/applications
ln -s snap /usr/bin/snap-store