From a54067f70961e57043f6c9531a3509b3f30c4ec3 Mon Sep 17 00:00:00 2001 From: Kevin Kofler Date: Mon, 1 Dec 2014 03:25:44 +0100 Subject: [PATCH] displaymanager: Don't run xdg-icon-resource and update-desktop-database. Don't run xdg-icon-resource and update-desktop-database in the basic setup for KDM. These tools have absolutely nothing to do with KDM. KDM does not ship any icons in the hicolor theme, nor a .desktop file (let alone one that handles any MIME type, the only case in which update-desktop-database is needed). I know the original shell script from Manjaro called these when setting up KDM, but this is really the wrong place. If you need to call these, they need to go into another module, and you also have to call them independently of the selected display manager. --- src/modules/displaymanager/main.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/modules/displaymanager/main.py b/src/modules/displaymanager/main.py index 6af3ab132..e2d7d98a7 100644 --- a/src/modules/displaymanager/main.py +++ b/src/modules/displaymanager/main.py @@ -326,9 +326,6 @@ def run(): '/var/lib/kdm', '-s', '/bin/false', '-r', '-M', 'kdm']) libcalamares.utils.chroot_call( ['chown', '-R', '135:135', 'var/lib/kdm']) - libcalamares.utils.chroot_call( - ['xdg-icon-resource', 'forceupdate', '--theme', 'hicolor']) - libcalamares.utils.chroot_call(['update-desktop-database', '-q']) else: libcalamares.utils.debug("kdm selected but not installed") displaymanagers.remove("kdm")