* [bug#31005] [PATCH] gnu: Add x11-socket-dir-service
@ 2018-03-31 12:34 Thorsten Wilms
2018-04-04 11:36 ` bug#31005: " Ludovic Courtès
0 siblings, 1 reply; 2+ messages in thread
From: Thorsten Wilms @ 2018-03-31 12:34 UTC (permalink / raw)
To: 31005
* gnu/services/desktop.scm (gnu): Export x11-socket-dir-service, define it,
add it to %desktop-services list.
---
gnu/services/desktop.scm | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/gnu/services/desktop.scm b/gnu/services/desktop.scm
index 897252917..ef3a5457e 100644
--- a/gnu/services/desktop.scm
+++ b/gnu/services/desktop.scm
@@ -94,6 +94,8 @@
xfce-desktop-service
xfce-desktop-service-type
+ x11-socket-dir-service
+
%desktop-services))
;;; Commentary:
@@ -882,6 +884,21 @@ with the administrator's password."
\f
;;;
+;;; X11 socket directory service
+;;;
+
+(define x11-socket-dir-service
+ ;; Return a service that creates /tmp/.X11-unix. X11 servers, including
+ ;; XWayland, create their socket file there.
+ (simple-service 'x11-socket-dir
+ activation-service-type
+ #~(begin (use-modules (guix build utils))
+ (let ((p "/tmp/.X11-unix"))
+ (mkdir-p p)
+ (chmod p #o777)))))
+
+\f
+;;;
;;; The default set of desktop services.
;;;
@@ -912,6 +929,8 @@ with the administrator's password."
(ntp-service)
+ x11-socket-dir-service
+
%base-services))
;;; desktop.scm ends here
--
2.11.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* bug#31005: [PATCH] gnu: Add x11-socket-dir-service
2018-03-31 12:34 [bug#31005] [PATCH] gnu: Add x11-socket-dir-service Thorsten Wilms
@ 2018-04-04 11:36 ` Ludovic Courtès
0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2018-04-04 11:36 UTC (permalink / raw)
To: Thorsten Wilms; +Cc: 31005-done
[-- Attachment #1: Type: text/plain, Size: 267 bytes --]
Hi Thorsten,
Thorsten Wilms <self@thorstenwilms.com> skribis:
> * gnu/services/desktop.scm (gnu): Export x11-socket-dir-service, define it,
> add it to %desktop-services list.
I made the following cosmetic changes and committed.
Thanks!
Ludo’.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 1729 bytes --]
diff --git a/gnu/services/desktop.scm b/gnu/services/desktop.scm
index 7f2d10d90..517d5d3ef 100644
--- a/gnu/services/desktop.scm
+++ b/gnu/services/desktop.scm
@@ -94,7 +94,7 @@
xfce-desktop-service
xfce-desktop-service-type
- x11-socket-dir-service
+ x11-socket-directory-service
%desktop-services))
@@ -887,15 +887,18 @@ with the administrator's password."
;;; X11 socket directory service
;;;
-(define x11-socket-dir-service
- ;; Return a service that creates /tmp/.X11-unix. X11 servers, including
- ;; XWayland, create their socket file there.
- (simple-service 'x11-socket-dir
+(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
- #~(begin (use-modules (guix build utils))
- (let ((p "/tmp/.X11-unix"))
- (mkdir-p p)
- (chmod p #o777)))))
+ (with-imported-modules '((guix build utils))
+ #~(begin
+ (use-modules (guix build utils))
+ (let ((directory "/tmp/.X11-unix"))
+ (mkdir-p directory)
+ (chmod directory #o777))))))
\f
;;;
@@ -929,7 +932,7 @@ with the administrator's password."
(ntp-service)
- x11-socket-dir-service
+ x11-socket-directory-service
%base-services))
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-04-04 11:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-31 12:34 [bug#31005] [PATCH] gnu: Add x11-socket-dir-service Thorsten Wilms
2018-04-04 11:36 ` bug#31005: " Ludovic Courtès
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).