From 319f2dc8d65fe0264e4eb6006aab024751bb5bd4 Mon Sep 17 00:00:00 2001 From: Kishore96in Date: Thu, 16 Jul 2020 12:53:10 +0530 Subject: Blacklist .local/share/kxmlgui5 and allow access only for applications which use it. (#3493) * blacklist .local/share/kxmlgui5 KDE programs use this to store their toolbar config. * noblacklist .local/share/kxmlgui5 in the relevant KDE applications. * Whitelist kxmlgui file for okular. * Use a glob to blacklist subfolders instead of the parent folder. noblacklisting individual subdirectories works only if we do it this way (tested by launching bash in the kate profile). * Make directory, not file. * noblacklist relevant subdirs for more KDE applications --- etc/profile-a-l/kcalc.profile | 3 +++ 1 file changed, 3 insertions(+) (limited to 'etc/profile-a-l/kcalc.profile') diff --git a/etc/profile-a-l/kcalc.profile b/etc/profile-a-l/kcalc.profile index 683ee08bd..fa82e76f3 100644 --- a/etc/profile-a-l/kcalc.profile +++ b/etc/profile-a-l/kcalc.profile @@ -6,6 +6,7 @@ include kcalc.local # Persistent global definitions include globals.local +noblacklist ${HOME}/.local/share/kxmlgui5/kcalc include disable-common.inc include disable-devel.inc @@ -15,12 +16,14 @@ include disable-passwdmgr.inc include disable-programs.inc include disable-shell.inc +mkdir ${HOME}/.local/share/kxmlgui5/kcalc mkfile ${HOME}/.config/kcalcrc mkfile ${HOME}/.kde/share/config/kcalcrc mkfile ${HOME}/.kde4/share/config/kcalcrc whitelist ${HOME}/.config/kcalcrc whitelist ${HOME}/.kde/share/config/kcalcrc whitelist ${HOME}/.kde4/share/config/kcalcrc +whitelist ${HOME}/.local/share/kxmlgui5/kcalc include whitelist-common.inc include whitelist-var-common.inc -- cgit v1.2.3-54-g00ecf