all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* xcape service
@ 2019-01-21 19:35 John Soo
  2019-01-23 13:08 ` Ricardo Wurmus
  0 siblings, 1 reply; 6+ messages in thread
From: John Soo @ 2019-01-21 19:35 UTC (permalink / raw)
  To: help-guix

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

Hello all,

I've been trying to define a service to keep xcape alive:

https://paste.debian.net/1061770/

Which works nicely when spawning the service except /var/log/xcape.log has
the following error:

Unable to connect to X11 display. Is $DISPLAY set?

Any ideas how to fix?

Thanks!

John

[-- Attachment #2: Type: text/html, Size: 583 bytes --]

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

* Re: xcape service
  2019-01-21 19:35 xcape service John Soo
@ 2019-01-23 13:08 ` Ricardo Wurmus
  2019-01-23 16:01   ` John Soo
  2019-01-23 16:04   ` John Soo
  0 siblings, 2 replies; 6+ messages in thread
From: Ricardo Wurmus @ 2019-01-23 13:08 UTC (permalink / raw)
  To: John Soo; +Cc: help-guix


Hi John,

> I've been trying to define a service to keep xcape alive:
>
> https://paste.debian.net/1061770/
>
> Which works nicely when spawning the service except /var/log/xcape.log has
> the following error:
>
> Unable to connect to X11 display. Is $DISPLAY set?

Does the service work when you run it after starting a graphical
session? (e.g. with a user instance of the Shepherd.)

--
Ricardo

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

* Re: xcape service
  2019-01-23 13:08 ` Ricardo Wurmus
@ 2019-01-23 16:01   ` John Soo
  2019-01-23 16:04   ` John Soo
  1 sibling, 0 replies; 6+ messages in thread
From: John Soo @ 2019-01-23 16:01 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: help-guix

Hi Ricardo,

Ah! Same thing!  Hmm. I don’t know what’s going on.  Any ideas?

Thanks,

John 

> On Jan 23, 2019, at 5:08 AM, Ricardo Wurmus <rekado@elephly.net> wrote:
> 
> 
> Hi John,
> 
>> I've been trying to define a service to keep xcape alive:
>> 
>> https://paste.debian.net/1061770/
>> 
>> Which works nicely when spawning the service except /var/log/xcape.log has
>> the following error:
>> 
>> Unable to connect to X11 display. Is $DISPLAY set?
> 
> Does the service work when you run it after starting a graphical
> session? (e.g. with a user instance of the Shepherd.)
> 
> --
> Ricardo
> 

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

* Re: xcape service
  2019-01-23 13:08 ` Ricardo Wurmus
  2019-01-23 16:01   ` John Soo
@ 2019-01-23 16:04   ` John Soo
  2019-02-01 16:11     ` John Soo
  1 sibling, 1 reply; 6+ messages in thread
From: John Soo @ 2019-01-23 16:04 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: help-guix

Oh wait I’m not sure I’m doing it right. I don’t know how to start a user instance. I’ll go look that up. 

> On Jan 23, 2019, at 5:08 AM, Ricardo Wurmus <rekado@elephly.net> wrote:
> 
> 
> Hi John,
> 
>> I've been trying to define a service to keep xcape alive:
>> 
>> https://paste.debian.net/1061770/
>> 
>> Which works nicely when spawning the service except /var/log/xcape.log has
>> the following error:
>> 
>> Unable to connect to X11 display. Is $DISPLAY set?
> 
> Does the service work when you run it after starting a graphical
> session? (e.g. with a user instance of the Shepherd.)
> 
> --
> Ricardo
> 

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

* Re: xcape service
  2019-01-23 16:04   ` John Soo
@ 2019-02-01 16:11     ` John Soo
  2019-02-01 16:29       ` John Soo
  0 siblings, 1 reply; 6+ messages in thread
From: John Soo @ 2019-02-01 16:11 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: help-guix

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

Hello,

I tracked down the shepherd file for the service and put most of the
contents in ~/.config/shepherd/init.scm: https://paste.debian.net/1064476/
When starting shepherd with `shepherd` I get the following:

250:24 2 (main . _) Fri 08:09:37 AM 48:6 1 (open-server-socket _) In
unknown file: 0 (bind # #(1 "/run/user/1000…") #)
ERROR: In procedure bind: In procedure bind: Address already in use

What should I do from here?  Seems like I need to specify a separate socket
for the user instance of shepherd.

Thanks!

John

On Wed, Jan 23, 2019 at 4:04 PM John Soo <jsoo1@asu.edu> wrote:

> Oh wait I’m not sure I’m doing it right. I don’t know how to start a user
> instance. I’ll go look that up.
>
> > On Jan 23, 2019, at 5:08 AM, Ricardo Wurmus <rekado@elephly.net> wrote:
> >
> >
> > Hi John,
> >
> >> I've been trying to define a service to keep xcape alive:
> >>
> >> https://paste.debian.net/1061770/
> >>
> >> Which works nicely when spawning the service except /var/log/xcape.log
> has
> >> the following error:
> >>
> >> Unable to connect to X11 display. Is $DISPLAY set?
> >
> > Does the service work when you run it after starting a graphical
> > session? (e.g. with a user instance of the Shepherd.)
> >
> > --
> > Ricardo
> >
>

[-- Attachment #2: Type: text/html, Size: 2095 bytes --]

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

* Re: xcape service
  2019-02-01 16:11     ` John Soo
@ 2019-02-01 16:29       ` John Soo
  0 siblings, 0 replies; 6+ messages in thread
From: John Soo @ 2019-02-01 16:29 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: help-guix

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

Hi all,

Sorry for the spam. Using `shepherd -s shepherd-socket` and can start
shepherd and communicate via `herd -s shepherd-socket`. I see nothing in
~/xcape.log yet, however.  It does spawn many xcape processes and it seems
like it found $DISPLAY, however. Any pointers on how to fix the original
service definition?

Thanks,

John

On Fri, Feb 1, 2019 at 4:11 PM John Soo <jsoo1@asu.edu> wrote:

> Hello,
>
> I tracked down the shepherd file for the service and put most of the
> contents in ~/.config/shepherd/init.scm: https://paste.debian.net/1064476/
> When starting shepherd with `shepherd` I get the following:
>
> 250:24 2 (main . _) Fri 08:09:37 AM 48:6 1 (open-server-socket _) In
> unknown file: 0 (bind # #(1 "/run/user/1000…") #)
> ERROR: In procedure bind: In procedure bind: Address already in use
>
> What should I do from here?  Seems like I need to specify a separate
> socket for the user instance of shepherd.
>
> Thanks!
>
> John
>
> On Wed, Jan 23, 2019 at 4:04 PM John Soo <jsoo1@asu.edu> wrote:
>
>> Oh wait I’m not sure I’m doing it right. I don’t know how to start a user
>> instance. I’ll go look that up.
>>
>> > On Jan 23, 2019, at 5:08 AM, Ricardo Wurmus <rekado@elephly.net> wrote:
>> >
>> >
>> > Hi John,
>> >
>> >> I've been trying to define a service to keep xcape alive:
>> >>
>> >> https://paste.debian.net/1061770/
>> >>
>> >> Which works nicely when spawning the service except /var/log/xcape.log
>> has
>> >> the following error:
>> >>
>> >> Unable to connect to X11 display. Is $DISPLAY set?
>> >
>> > Does the service work when you run it after starting a graphical
>> > session? (e.g. with a user instance of the Shepherd.)
>> >
>> > --
>> > Ricardo
>> >
>>
>

[-- Attachment #2: Type: text/html, Size: 2888 bytes --]

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

end of thread, other threads:[~2019-02-01 16:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-21 19:35 xcape service John Soo
2019-01-23 13:08 ` Ricardo Wurmus
2019-01-23 16:01   ` John Soo
2019-01-23 16:04   ` John Soo
2019-02-01 16:11     ` John Soo
2019-02-01 16:29       ` John Soo

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.