[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#808733: [PATCH] Workaround for KDE caching problem on tmpfs (Bug 329668)



Package: live-config
Severity: wishlist

see attached mail for an explanation and patch from Volley

-- 
Bruce Schneier can read and understand Perl programs.
--- Begin Message ---
Something else.

Note: this is a really ugly hack.
You most likely do not want to make this part of the official live-config :)

But it did help me and i wanted to share it with someone.

Read about the problem at:
https://bugs.kde.org/show_bug.cgi?id=329668


Worf
>From fef3fc93f8f14664a4880f1c70a815726dc3f0a6 Mon Sep 17 00:00:00 2001
From: Wolfgang Scheicher <wolfgang.scheicher@gmail.com>
Date: Mon, 21 Dec 2015 23:45:58 +0100
Subject: [PATCH 2/2] Workaround for KDE caching problem on tmpfs (Bug 329668)

---
 components/0030-user-setup | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/components/0030-user-setup b/components/0030-user-setup
index bcd3cb9..90fff09 100755
--- a/components/0030-user-setup
+++ b/components/0030-user-setup
@@ -88,6 +88,13 @@ EOF
 	| grep -v "Shadow passwords are now on"
 	set -e
 
+	# Workaround for KDE caching problem on tmpfs (Bug 329668)
+	mkdir -p /var/tmp/kdecache-${LIVE_USERNAME}
+	chown ${LIVE_USERNAME}:${LIVE_USERNAME} /var/tmp/kdecache-${LIVE_USERNAME}/
+	ln -s /dev/zero /var/tmp/kdecache-${LIVE_USERNAME}/plasma_theme_default_v2.0.kcache
+	ln -s /dev/zero /var/tmp/kdecache-${LIVE_USERNAME}/plasma_theme_internal-system-colors.kcache
+	chown ${LIVE_USERNAME}:${LIVE_USERNAME} /var/tmp/kdecache-${LIVE_USERNAME}/*.kcache
+
 	# Creating state file
 	touch /var/lib/live/config/user-setup
 }
-- 
2.6.4


--- End Message ---

Reply to: