From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Soo Subject: Re: xcape service Date: Fri, 1 Feb 2019 16:11:42 +0000 Message-ID: References: <87bm477c9u.fsf@elephly.net> <04B73BFC-437A-405E-B333-00F3FFB0251B@asu.edu> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000bfe3950580d7667f" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:33123) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gpbTA-0006no-7Q for help-guix@gnu.org; Fri, 01 Feb 2019 11:15:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gpbT4-0006eg-Bn for help-guix@gnu.org; Fri, 01 Feb 2019 11:15:08 -0500 Received: from mail-vs1-xe2d.google.com ([2607:f8b0:4864:20::e2d]:44300) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gpbT4-0005ZI-1Y for help-guix@gnu.org; Fri, 01 Feb 2019 11:15:02 -0500 Received: by mail-vs1-xe2d.google.com with SMTP id u11so4481416vsp.11 for ; Fri, 01 Feb 2019 08:11:54 -0800 (PST) In-Reply-To: <04B73BFC-437A-405E-B333-00F3FFB0251B@asu.edu> 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 --000000000000bfe3950580d7667f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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.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 > > > --000000000000bfe3950580d7667f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

I tracked down the sh= epherd file for the service and put most of the contents in ~/.config/sheph= erd/init.scm: https://paste.d= ebian.net/1064476/
When starting shepherd with `shepherd` I g= et 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 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> 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 instan= ce. 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
>
--000000000000bfe3950580d7667f--