diff --git a/pepscripts/06setup-snap-install b/pepscripts/06setup-snap-install new file mode 100644 index 0000000..7a12973 --- /dev/null +++ b/pepscripts/06setup-snap-install @@ -0,0 +1,18 @@ +#!/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 + + diff --git a/pepscriptsdev/06setup-snap-install b/pepscriptsdev/06setup-snap-install new file mode 100644 index 0000000..7a12973 --- /dev/null +++ b/pepscriptsdev/06setup-snap-install @@ -0,0 +1,18 @@ +#!/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 + +