From 6268b3ca8489e26b07bfbd89eef0de17928ed574 Mon Sep 17 00:00:00 2001 From: manuel Date: Sun, 16 Jul 2023 15:53:24 +0000 Subject: [PATCH] add snap fix for debian --- pepscripts/06setup-snap-install | 18 ++++++++++++++++++ pepscriptsdev/06setup-snap-install | 18 ++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 pepscripts/06setup-snap-install create mode 100644 pepscriptsdev/06setup-snap-install 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 + +