[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/07: gnu: Add x11-socket-directory-service.
From: |
Ludovic Courtès |
Subject: |
01/07: gnu: Add x11-socket-directory-service. |
Date: |
Wed, 4 Apr 2018 08:39:46 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit cd730719846538bf04061f85adc1651f8c2a509d
Author: Thorsten Wilms <address@hidden>
Date: Sat Mar 31 14:34:50 2018 +0200
gnu: Add x11-socket-directory-service.
* gnu/services/desktop.scm (x11-socket-directory-service): New
variable.
(%desktop-services): Add it.
Signed-off-by: Ludovic Courtès <address@hidden>
---
gnu/services/desktop.scm | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/gnu/services/desktop.scm b/gnu/services/desktop.scm
index 8972529..517d5d3 100644
--- a/gnu/services/desktop.scm
+++ b/gnu/services/desktop.scm
@@ -94,6 +94,8 @@
xfce-desktop-service
xfce-desktop-service-type
+ x11-socket-directory-service
+
%desktop-services))
;;; Commentary:
@@ -882,6 +884,24 @@ with the administrator's password."
;;;
+;;; X11 socket directory service
+;;;
+
+(define x11-socket-directory-service
+ ;; Return a service that creates /tmp/.X11-unix. When using X11, libxcb
+ ;; takes care of creating that directory. However, when using XWayland, we
+ ;; need to create beforehand. Thus, create it unconditionally here.
+ (simple-service 'x11-socket-directory
+ activation-service-type
+ (with-imported-modules '((guix build utils))
+ #~(begin
+ (use-modules (guix build utils))
+ (let ((directory "/tmp/.X11-unix"))
+ (mkdir-p directory)
+ (chmod directory #o777))))))
+
+
+;;;
;;; The default set of desktop services.
;;;
@@ -912,6 +932,8 @@ with the administrator's password."
(ntp-service)
+ x11-socket-directory-service
+
%base-services))
;;; desktop.scm ends here
- branch master updated (02e7e3f -> 03efe78), Ludovic Courtès, 2018/04/04
- 02/07: gnu: Add python-django-override-storage., Ludovic Courtès, 2018/04/04
- 04/07: gnu: Add dot2tex., Ludovic Courtès, 2018/04/04
- 03/07: gnu: chromaprint: Build 'fpcalc'., Ludovic Courtès, 2018/04/04
- 07/07: gnu: Add emacs-password-store., Ludovic Courtès, 2018/04/04
- 05/07: gnu: Add emacs-emmet-mode., Ludovic Courtès, 2018/04/04
- 01/07: gnu: Add x11-socket-directory-service.,
Ludovic Courtès <=
- 06/07: gnu: Add python-empy., Ludovic Courtès, 2018/04/04