add snap fix for debian

This commit is contained in:
manuel 2023-07-16 15:53:24 +00:00
parent deb051fd05
commit 6268b3ca84
2 changed files with 36 additions and 0 deletions

View File

@ -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

View File

@ -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