lightdm: fix removal of unused user data directories
This fixes errors such as Could not delete unused user data directory /var/lib/lightdm-data/.cache: Failed to execute child process “/bin/rm” (No such file or directory) Could not delete unused user data directory /var/lib/lightdm-data/.Xauthority: Failed to execute child process “/bin/rm” (No such file or directory) Could not delete unused user data directory /var/lib/lightdm-data/lightdm: Failed to execute child process “/bin/rm” (No such file or directory)
This commit is contained in:
parent
f9a5cacae7
commit
43c48a3c12
@ -1,5 +1,5 @@
|
|||||||
{ stdenv, fetchurl, pam, pkgconfig, libxcb, glib, libXdmcp, itstool, libxml2
|
{ stdenv, fetchurl, pam, pkgconfig, libxcb, glib, libXdmcp, itstool, libxml2
|
||||||
, intltool, xlibsWrapper, libxklavier, libgcrypt, libaudit
|
, intltool, xlibsWrapper, libxklavier, libgcrypt, libaudit, coreutils
|
||||||
, qt4 ? null
|
, qt4 ? null
|
||||||
, withQt5 ? false, qtbase
|
, withQt5 ? false, qtbase
|
||||||
}:
|
}:
|
||||||
@ -36,6 +36,11 @@ stdenv.mkDerivation rec {
|
|||||||
"localstatedir=\${TMPDIR}"
|
"localstatedir=\${TMPDIR}"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
prePatch = ''
|
||||||
|
substituteInPlace src/shared-data-manager.c \
|
||||||
|
--replace /bin/rm ${coreutils}/bin/rm
|
||||||
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = https://launchpad.net/lightdm;
|
homepage = https://launchpad.net/lightdm;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user