From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Soo Subject: Re: xcape service Date: Fri, 1 Feb 2019 16:29:23 +0000 Message-ID: References: <87bm477c9u.fsf@elephly.net> <04B73BFC-437A-405E-B333-00F3FFB0251B@asu.edu> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000006a650580d7a600" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:36712) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gpbhP-000211-CY for help-guix@gnu.org; Fri, 01 Feb 2019 11:29:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gpbhL-0004fL-Ik for help-guix@gnu.org; Fri, 01 Feb 2019 11:29:49 -0500 Received: from mail-vs1-xe2f.google.com ([2607:f8b0:4864:20::e2f]:46910) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gpbhD-0004YE-DB for help-guix@gnu.org; Fri, 01 Feb 2019 11:29:43 -0500 Received: by mail-vs1-xe2f.google.com with SMTP id n10so4506770vso.13 for ; Fri, 01 Feb 2019 08:29:35 -0800 (PST) In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Ricardo Wurmus Cc: help-guix --000000000000006a650580d7a600 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 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=E2=80=A6") #) > 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 wrote: > >> Oh wait I=E2=80=99m not sure I=E2=80=99m doing it right. I don=E2=80=99t= know how to start a user >> instance. I=E2=80=99ll go look that up. >> >> > On Jan 23, 2019, at 5:08 AM, Ricardo Wurmus 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.lo= g >> 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 >> > >> > --000000000000006a650580d7a600 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
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.= =C2=A0 It does spawn many xcape processes and it seems like it found $DISPL= AY, however. Any pointers on how to fix the original service definition?

Thanks,

John

On Fr= i, Feb 1, 2019 at 4:11 PM John Soo <jso= o1@asu.edu> wrote:
Hello,

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

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

What sho= uld I do from here?=C2=A0 Seems like I need to specify a separate socket fo= r the user instance of shepherd.

Thanks!

John

On Wed, Jan 23, 2019 at 4:04 PM John Soo <= jsoo1@asu.edu> wr= ote:
Oh wait I= =E2=80=99m not sure I=E2=80=99m doing it right. I don=E2=80=99t know how to= start a user instance. I=E2=80=99ll 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
>
--000000000000006a650580d7a600--