unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#40680] [PATCH] service: sddm: Have sddm-service-type conflict with other display managers.
@ 2020-04-17 14:41 Efraim Flashner
  2020-04-17 21:00 ` Ludovic Courtès
  0 siblings, 1 reply; 5+ messages in thread
From: Efraim Flashner @ 2020-04-17 14:41 UTC (permalink / raw)
  To: 40680; +Cc: Efraim Flashner

* gnu/services/sddm.scm (sddm-shepherd-service)[shepherd-service]:
Conflict with 'xorg-server.
---

I was looking over the services list with raingloom on IRC and I noticed
that GDM and Slim both provision xorg-server, while SDDM provisions
display-manager. To ensure that they conflict with each other we can
either:

A: Have SDDM conflict with 'xorg-server

B: Have SDDM also provision 'xorg-server

I'm currently using SDDM (in Wayland mode) to launch an X session of
Enlightenment, so I think it's safe enough to say that SDDM can
provision 'xorg-server.

---

 gnu/services/sddm.scm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gnu/services/sddm.scm b/gnu/services/sddm.scm
index 1921afce95..aa08859513 100644
--- a/gnu/services/sddm.scm
+++ b/gnu/services/sddm.scm
@@ -171,6 +171,7 @@ Relogin="              (if (sddm-configuration-relogin? config)
          (documentation "SDDM display manager.")
          (requirement '(user-processes))
          (provision '(display-manager))
+         (conflicts-with '(xorg-server))
          (start #~(make-forkexec-constructor #$sddm-command))
          (stop #~(make-kill-destructor)))))
 
-- 
2.26.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [bug#40680] [PATCH] service: sddm: Have sddm-service-type conflict with other display managers.
  2020-04-17 14:41 [bug#40680] [PATCH] service: sddm: Have sddm-service-type conflict with other display managers Efraim Flashner
@ 2020-04-17 21:00 ` Ludovic Courtès
  2020-04-18 18:01   ` Efraim Flashner
  0 siblings, 1 reply; 5+ messages in thread
From: Ludovic Courtès @ 2020-04-17 21:00 UTC (permalink / raw)
  To: Efraim Flashner; +Cc: 40680

Hi Efraim,

Efraim Flashner <efraim@flashner.co.il> skribis:

> * gnu/services/sddm.scm (sddm-shepherd-service)[shepherd-service]:
> Conflict with 'xorg-server.
> ---
>
> I was looking over the services list with raingloom on IRC and I noticed
> that GDM and Slim both provision xorg-server, while SDDM provisions
> display-manager. To ensure that they conflict with each other we can
> either:
>
> A: Have SDDM conflict with 'xorg-server
>
> B: Have SDDM also provision 'xorg-server
>
> I'm currently using SDDM (in Wayland mode) to launch an X session of
> Enlightenment, so I think it's safe enough to say that SDDM can
> provision 'xorg-server.
>
> ---
>
>  gnu/services/sddm.scm | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/gnu/services/sddm.scm b/gnu/services/sddm.scm
> index 1921afce95..aa08859513 100644
> --- a/gnu/services/sddm.scm
> +++ b/gnu/services/sddm.scm
> @@ -171,6 +171,7 @@ Relogin="              (if (sddm-configuration-relogin? config)
>           (documentation "SDDM display manager.")
>           (requirement '(user-processes))
>           (provision '(display-manager))
> +         (conflicts-with '(xorg-server))

‘conflicts-with’ doesn’t exist, right?  :-)

But yes, I think (provision '(xorg-server display-manager)) would be
fine.

Or we can even drop ‘display-manager’ since it’s not used anywhere else.

Thanks,
Ludo’.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [bug#40680] [PATCH] service: sddm: Have sddm-service-type conflict with other display managers.
  2020-04-17 21:00 ` Ludovic Courtès
@ 2020-04-18 18:01   ` Efraim Flashner
  2020-04-18 23:33     ` Ludovic Courtès
  0 siblings, 1 reply; 5+ messages in thread
From: Efraim Flashner @ 2020-04-18 18:01 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 40680

[-- Attachment #1: Type: text/plain, Size: 2113 bytes --]

On Fri, Apr 17, 2020 at 11:00:49PM +0200, Ludovic Courtès wrote:
> Hi Efraim,
> 
> Efraim Flashner <efraim@flashner.co.il> skribis:
> 
> > * gnu/services/sddm.scm (sddm-shepherd-service)[shepherd-service]:
> > Conflict with 'xorg-server.
> > ---
> >
> > I was looking over the services list with raingloom on IRC and I noticed
> > that GDM and Slim both provision xorg-server, while SDDM provisions
> > display-manager. To ensure that they conflict with each other we can
> > either:
> >
> > A: Have SDDM conflict with 'xorg-server
> >
> > B: Have SDDM also provision 'xorg-server
> >
> > I'm currently using SDDM (in Wayland mode) to launch an X session of
> > Enlightenment, so I think it's safe enough to say that SDDM can
> > provision 'xorg-server.
> >
> > ---
> >
> >  gnu/services/sddm.scm | 1 +
> >  1 file changed, 1 insertion(+)
> >
> > diff --git a/gnu/services/sddm.scm b/gnu/services/sddm.scm
> > index 1921afce95..aa08859513 100644
> > --- a/gnu/services/sddm.scm
> > +++ b/gnu/services/sddm.scm
> > @@ -171,6 +171,7 @@ Relogin="              (if (sddm-configuration-relogin? config)
> >           (documentation "SDDM display manager.")
> >           (requirement '(user-processes))
> >           (provision '(display-manager))
> > +         (conflicts-with '(xorg-server))
> 
> ‘conflicts-with’ doesn’t exist, right?  :-)
> 

I haven't tried it out for Guix services, but it exists for shepherd
services, according to the manual¹

> But yes, I think (provision '(xorg-server display-manager)) would be
> fine.
> 
> Or we can even drop ‘display-manager’ since it’s not used anywhere else.

Normally I'd be skeptical about dropping it since people might expect it
if they're using sddm, but it'd probably be fine.


¹ https://www.gnu.org/software/shepherd/manual/html_node/Methods-of-services.html#Methods-of-services

-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [bug#40680] [PATCH] service: sddm: Have sddm-service-type conflict with other display managers.
  2020-04-18 18:01   ` Efraim Flashner
@ 2020-04-18 23:33     ` Ludovic Courtès
  2020-04-19  6:07       ` bug#40680: " Efraim Flashner
  0 siblings, 1 reply; 5+ messages in thread
From: Ludovic Courtès @ 2020-04-18 23:33 UTC (permalink / raw)
  To: Efraim Flashner; +Cc: 40680

Hi,

Efraim Flashner <efraim@flashner.co.il> skribis:

> On Fri, Apr 17, 2020 at 11:00:49PM +0200, Ludovic Courtès wrote:

[...]

>> > --- a/gnu/services/sddm.scm
>> > +++ b/gnu/services/sddm.scm
>> > @@ -171,6 +171,7 @@ Relogin="              (if (sddm-configuration-relogin? config)
>> >           (documentation "SDDM display manager.")
>> >           (requirement '(user-processes))
>> >           (provision '(display-manager))
>> > +         (conflicts-with '(xorg-server))
>> 
>> ‘conflicts-with’ doesn’t exist, right?  :-)
>> 
>
> I haven't tried it out for Guix services, but it exists for shepherd
> services, according to the manual¹

Right, it’s not available in Guix <shepherd-service>.

However, simplify adding ‘xorg-server’ to ‘provision’ should have the
desired effect: ‘guix system’ errors out if more than one service
provides the same symbol.

>> But yes, I think (provision '(xorg-server display-manager)) would be
>> fine.
>> 
>> Or we can even drop ‘display-manager’ since it’s not used anywhere else.
>
> Normally I'd be skeptical about dropping it since people might expect it
> if they're using sddm, but it'd probably be fine.

Yeah, maybe it’s safer to keep it.

Thanks,
Ludo’.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#40680: [PATCH] service: sddm: Have sddm-service-type conflict with other display managers.
  2020-04-18 23:33     ` Ludovic Courtès
@ 2020-04-19  6:07       ` Efraim Flashner
  0 siblings, 0 replies; 5+ messages in thread
From: Efraim Flashner @ 2020-04-19  6:07 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 40680-done

[-- Attachment #1: Type: text/plain, Size: 1727 bytes --]

On Sun, Apr 19, 2020 at 01:33:07AM +0200, Ludovic Courtès wrote:
> Hi,
> 
> Efraim Flashner <efraim@flashner.co.il> skribis:
> 
> > On Fri, Apr 17, 2020 at 11:00:49PM +0200, Ludovic Courtès wrote:
> 
> [...]
> 
> >> > --- a/gnu/services/sddm.scm
> >> > +++ b/gnu/services/sddm.scm
> >> > @@ -171,6 +171,7 @@ Relogin="              (if (sddm-configuration-relogin? config)
> >> >           (documentation "SDDM display manager.")
> >> >           (requirement '(user-processes))
> >> >           (provision '(display-manager))
> >> > +         (conflicts-with '(xorg-server))
> >> 
> >> ‘conflicts-with’ doesn’t exist, right?  :-)
> >> 
> >
> > I haven't tried it out for Guix services, but it exists for shepherd
> > services, according to the manual¹
> 
> Right, it’s not available in Guix <shepherd-service>.
> 
> However, simplify adding ‘xorg-server’ to ‘provision’ should have the
> desired effect: ‘guix system’ errors out if more than one service
> provides the same symbol.
> 
> >> But yes, I think (provision '(xorg-server display-manager)) would be
> >> fine.
> >> 
> >> Or we can even drop ‘display-manager’ since it’s not used anywhere else.
> >
> > Normally I'd be skeptical about dropping it since people might expect it
> > if they're using sddm, but it'd probably be fine.
> 
> Yeah, maybe it’s safer to keep it.
> 
> Thanks,
> Ludo’.

Sounds good. I put xorg-server first so it more closely matches with the
other ones.

-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-04-19  6:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-17 14:41 [bug#40680] [PATCH] service: sddm: Have sddm-service-type conflict with other display managers Efraim Flashner
2020-04-17 21:00 ` Ludovic Courtès
2020-04-18 18:01   ` Efraim Flashner
2020-04-18 23:33     ` Ludovic Courtès
2020-04-19  6:07       ` bug#40680: " Efraim Flashner

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).