From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 14+EIOHfk2AoWgEAgWs5BA (envelope-from ) for ; Thu, 06 May 2021 14:24:01 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id SP5/G+Hfk2BnOwAAbx9fmQ (envelope-from ) for ; Thu, 06 May 2021 12:24:01 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 0B3921D79B for ; Thu, 6 May 2021 14:24:01 +0200 (CEST) Received: from localhost ([::1]:35204 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1led2u-00041g-5B for larch@yhetil.org; Thu, 06 May 2021 08:24:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33130) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lectG-0005QM-Pn for guix-patches@gnu.org; Thu, 06 May 2021 08:14:07 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54177) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lectG-0007AP-4O for guix-patches@gnu.org; Thu, 06 May 2021 08:14:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lectF-0003yu-Tt for guix-patches@gnu.org; Thu, 06 May 2021 08:14:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48220] [PATCH] gnu: xfce4-session: Add xset to propagated-inputs. Resent-From: Brendan Tildesley Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 06 May 2021 12:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48220 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Efraim Flashner Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= , 48220@debbugs.gnu.org Received: via spool by 48220-submit@debbugs.gnu.org id=B48220.162030320615284 (code B ref 48220); Thu, 06 May 2021 12:14:01 +0000 Received: (at 48220) by debbugs.gnu.org; 6 May 2021 12:13:26 +0000 Received: from localhost ([127.0.0.1]:37490 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lecsf-0003yS-N0 for submit@debbugs.gnu.org; Thu, 06 May 2021 08:13:25 -0400 Received: from mout-p-202.mailbox.org ([80.241.56.172]:17060) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lecsd-0003yK-2l for 48220@debbugs.gnu.org; Thu, 06 May 2021 08:13:24 -0400 Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4FbXXr6qkrzQk2f; Thu, 6 May 2021 14:13:16 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brendan.scot; s=MBO0001; t=1620303195; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=eX/y6bCDUn2lq7LSxrFiNXghGD/PNtjylm4BgjcyzmI=; b=EzopiYOqKY0y3XWbNZ6yUz2cOq3JwL2lCp+1uVWWGjdPdsx3pw0Uhmawm0C31z3cw8Tkju 3T1CWlZcin+L5DqCLdFj1lWhPwqUPUw23FgyVQ+mZ7pvokbvCCuD2eFBiXec0kfhFr/Y+0 by0p3eRUXCLyldnjzzJYD7GFYfv4vzO9sHH4oeIGXJKER+lsa1+Ir0+8MQN5eSVrItBqaW DFkJYNbjwOflfBc0e9/SER+rnrwImN/eu/TfuP6Wkip2YdRRF6NX4q++V+VJiS8AZIbr9u NTe6jkMvRGkGCDUqmvaA4JE9iTYy+5KxBRPQ08HNiKc1ZVd2OKK/SyXKz1MI1g== Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter03.heinlein-hosting.de (spamfilter03.heinlein-hosting.de [80.241.56.117]) (amavisd-new, port 10030) with ESMTP id OrraFaIoyuM5; Thu, 6 May 2021 14:13:13 +0200 (CEST) Date: Thu, 6 May 2021 14:13:12 +0200 (CEST) From: Brendan Tildesley Message-ID: <658388374.187505.1620303193042@office.mailbox.org> In-Reply-To: References: <20210504092051.24383-1-mail@brendan.scot> <87v97xjoux.fsf@gnu.org> <615974577.179836.1620268738791@office.mailbox.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Priority: 3 Importance: Normal X-MBO-SPAM-Probability: X-Rspamd-Score: -7.92 / 15.00 / 15.00 X-Rspamd-Queue-Id: DAC0B17BE X-Rspamd-UID: 294b66 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1620303841; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=eX/y6bCDUn2lq7LSxrFiNXghGD/PNtjylm4BgjcyzmI=; b=crFPCdxdW/WA5SsDp2d9xcDGq/Gi3axCiYRgZwGFUIk2o4g44H1vtu62olkD5nqs5YTsaQ LOXExANx579Koohxyj353D8hcgdUEkVRy/CpKUmtujprZNFx14wVbx/ezCZYumqct07Vnb rP19GeIbbvVXYaussxwNQ+HrgPYWdFP0+xp3RwQKhqknsloysE0L/P4uxlaZ7+LjCydeUY 0lOUpRb5SaoExWQexQGCbTZ1eHRbBF9nRgZKZMNqtv45ocIzw6LDzSjqz2FC3Kii94ksAA 8Nh1vP/4cXIzMUK3f/ep1r/g+8a4jz7yisqgbyaqwokNG8+jfTFAfQmRfu5iKQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620303841; a=rsa-sha256; cv=none; b=mMFTd9mPxH7qH0QwMp/IY+96XaVELYD/YFVRIdKCrAXTCEyqipIgxeGDNP1vxjhE0FNOfr 2ovNPOgfmYVy1t7BwfLvdRh3AgvQChvc15Gxb7GVhNh46gEKlqFz6diMAbtkcJBEf/xe0u Qz30gUtXhUSrZWTDxjPFqeukZu1ncyUqHW/ZykiWcTeB3mRvKSo8CRrORLYV899LETPXSc ad9ZPlOH/B2XSC2gYSzHqUzjMENXtpf0J/FYHdSSXI2tdEnAwFnoR2yIXr+d/i528f4v1Q 8ySiKjUTNnAYt8ETxoU/lgX4sYgJNfOC0zo0PuzOZA1F+eE1zlnfj/9OYFXHsQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=brendan.scot header.s=MBO0001 header.b=EzopiYOq; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 0.04 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=brendan.scot header.s=MBO0001 header.b=EzopiYOq; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 0B3921D79B X-Spam-Score: 0.04 X-Migadu-Scanner: scn0.migadu.com X-TUID: 5XgejpCTofgn > On 05/06/2021 2:03 PM Efraim Flashner wrote: >=20 > =20 > On Thu, May 06, 2021 at 04:38:58AM +0200, Brendan Tildesley wrote: > >=20 > > > On 05/05/2021 3:23 PM Ludovic Court=C3=A8s wrote: > > >=20 > > > =20 > > > Hi Brendan, > > >=20 > > > Brendan Tildesley skribis: > > >=20 > > > > * gnu/packages/xfce.scm (xfce4-session):[propagated-inputs]: Add xs= et so > > > > that xflock4 can turn off the monitor. > > >=20 > > > Can=E2=80=99t we instead patch =E2=80=98scripts/xflock4=E2=80=99 so t= hat it refers to =E2=80=98xset=E2=80=99 by > > > its absolute file name? > > >=20 > >=20 > > I can. It felt weird just patching one command and not others though. > >=20 > > > However, my understanding is that the xset code is already a fallback= : > >=20 > > >=20 > > > --8<---------------cut here---------------start------------->8--- > > > # else run another access locking utility, if installed > > > for lock_cmd in \ > > > "xlock -mode blank" \ > > > "slock" > > > do > > > set -- $lock_cmd > > > if command -v -- $1 >/dev/null 2>&1; then > > > $lock_cmd >/dev/null 2>&1 & > > > =09# turn off display backlight: > > > =09xset dpms force off > > > exit > > > fi > > > done > > > --8<---------------cut here---------------end--------------->8--- [...] > Are you using %desktop-services in your OS config? By default they come > with a screen-locker-service for both slock and xlockmore. >=20 Yep, those ones work but they merely produce a black screen with the backli= ght on, then the xset command in the above script actually turns off the screen to = save power. if any of xfce4-screensaver, gnome-screensaver, or xscreensaver are availab= le, then it will use those first.