From 2a81b6af5f32913c3f801ec268366717d9e019bc Mon Sep 17 00:00:00 2001 From: Ark74 Date: Thu, 5 Mar 2020 05:52:37 -0600 Subject: [PATCH 1/3] Fix LP #1798091 - no pdf thumbnails --- helpers/make-evince | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 helpers/make-evince diff --git a/helpers/make-evince b/helpers/make-evince new file mode 100644 index 0000000..1c80fea --- /dev/null +++ b/helpers/make-evince @@ -0,0 +1,29 @@ +#!/bin/sh +# +# Copyright (C) 2020 Luis Guzmán +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +# + +VERSION=1 + +. ./config + +sed -i "/owner \/tmp\/evince-thumbnailer/d" debian/apparmor-profile + +changelog "Fix LP #1798091 - no pdf thumbnails" + +compile + From 27f7bdfbc0e9548c7d88883dea43531ae9ab03c1 Mon Sep 17 00:00:00 2001 From: Ark74 Date: Fri, 6 Mar 2020 12:11:46 -0600 Subject: [PATCH 2/3] Upgrade apparmor rules for mate --- helpers/make-evince | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/helpers/make-evince b/helpers/make-evince index 1c80fea..1f9a8ed 100644 --- a/helpers/make-evince +++ b/helpers/make-evince @@ -21,7 +21,15 @@ VERSION=1 . ./config -sed -i "/owner \/tmp\/evince-thumbnailer/d" debian/apparmor-profile +sed -i '$d' debian/apparmor-profile +cat << FIX >> debian/apparmor-profile + + # Add apparmon rule for mate's caja - LP#1798091 + owner /tmp/.mate_desktop_thumbnail* w, + owner /tmp/mate-desktop-thumbnailer* w + +} +FIX changelog "Fix LP #1798091 - no pdf thumbnails" From c3506809eb8fb444cc429f447241b24e81247a20 Mon Sep 17 00:00:00 2001 From: Ark74 Date: Fri, 6 Mar 2020 12:14:44 -0600 Subject: [PATCH 3/3] Fix typo --- helpers/make-evince | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/make-evince b/helpers/make-evince index 1f9a8ed..c689c2e 100644 --- a/helpers/make-evince +++ b/helpers/make-evince @@ -24,7 +24,7 @@ VERSION=1 sed -i '$d' debian/apparmor-profile cat << FIX >> debian/apparmor-profile - # Add apparmon rule for mate's caja - LP#1798091 + # Add apparmor rule for mate's caja - LP#1798091 owner /tmp/.mate_desktop_thumbnail* w, owner /tmp/mate-desktop-thumbnailer* w