[systemd-devel] [PATCH] Remove X11 lock files for displays :10 and higher too

Josh Triplett josh at joshtriplett.org
Sat Aug 6 15:56:39 PDT 2011


---

Using .X[0-9]*-lock seems safe to me, but if you prefer I can write
separate lines for [0-9], [0-9][0-9], and [0-9][0-9][0-9].  Now if only
tmpfiles.d could do regexes or extglob rather than just shell-style
globs. :)

 tmpfiles.d/x11.conf |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tmpfiles.d/x11.conf b/tmpfiles.d/x11.conf
index 5072b58..7f81af6 100644
--- a/tmpfiles.d/x11.conf
+++ b/tmpfiles.d/x11.conf
@@ -15,4 +15,4 @@ d /tmp/.font-unix 1777 root root 10d
 d /tmp/.Test-unix 1777 root root 10d
 
 # Unlink the X11 lock files
-r /tmp/.X[0-9]-lock
+r /tmp/.X[0-9]*-lock
-- 
1.7.5.4



More information about the systemd-devel mailing list