diff options
author | Librewish | 2020-09-04 17:02:49 +0530 |
---|---|---|
committer | Librewish | 2020-09-04 17:02:49 +0530 |
commit | e374a437c4efbed488dfea9e2a13a18e713d1803 (patch) | |
tree | 0a19e1247b1258b98fa8dbc66d113ba13a2d9123 /pamac.install | |
parent | 19b8e7488936964d6edc8402d0d3947c447ab802 (diff) | |
download | aur-e374a437c4efbed488dfea9e2a13a18e713d1803.tar.gz |
enable classic snap support
Diffstat (limited to 'pamac.install')
-rw-r--r-- | pamac.install | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/pamac.install b/pamac.install index fb3df4aa94ef..8136bdab73b0 100644 --- a/pamac.install +++ b/pamac.install @@ -3,6 +3,10 @@ post_install() { if [ -f /usr/bin/flatpak ]; then flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo fi + # enable classic snap support + if [ -f /usr/bin/snap ]; then + ln -s /var/lib/snapd/snap /snap + fi # enable systemd timers ln -sf /usr/lib/systemd/system/pamac-cleancache.timer /etc/systemd/system/multi-user.target.wants #ln -sf /usr/lib/systemd/system/pamac-mirrorlist.timer /etc/systemd/system/multi-user.target.wants @@ -19,10 +23,14 @@ post_upgrade() { if [ -f /usr/bin/flatpak ]; then flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo fi + # enable classic snap support + if [ -f /usr/bin/snap ]; then + ln -s /var/lib/snapd/snap /snap + fi } post_remove() { # disable systemd timers rm -f /etc/systemd/system/multi-user.target.wants/pamac-cleancache.timer #rm -f /etc/systemd/system/multi-user.target.wants/pamac-mirrorlist.timer -}
\ No newline at end of file +} |