From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id Tr+zHo84X2OIVAAAbAwnHQ (envelope-from ) for ; Mon, 31 Oct 2022 03:53:03 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id gI2nHY84X2NeyAAA9RJhRA (envelope-from ) for ; Mon, 31 Oct 2022 03:53:03 +0100 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 51F68E281 for ; Mon, 31 Oct 2022 03:53:03 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1opKug-0000Sk-08; Sun, 30 Oct 2022 22:52:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1opKud-0000SP-Od for emacs-orgmode@gnu.org; Sun, 30 Oct 2022 22:52:31 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1opKuc-0004k1-8n for emacs-orgmode@gnu.org; Sun, 30 Oct 2022 22:52:31 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id F4138240101 for ; Mon, 31 Oct 2022 03:52:28 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1667184749; bh=EB3Dsvk6txFeqDo7FeveV+1/2OYCdcyE6ArqBDvFIsE=; h=From:To:Cc:Subject:Date:From; b=AbUjo/stOXofFfX7Dm2b6c6eA/7XiKAdtLoiM51IQGvKjl8fynAIPrz8X8WrorIYZ eJzJzzwJWhlYQoHpPiDRK8G0Pia608Z9MFFabpcz7T9fn9hufWJO8QW5RkrzzzPdqp GyH5iIQ1JcSsl6/Y+nW7PjmzfPaOxkht8hJfmPY3/KgYhxYkqMrHkm/jRzbSfpMEaL 36DHaSH9TPsurtf1JJcldUOKqOlHt8Q7PCB4CGpQGnUKlQyToqBB4XVnYRPjrz8IJq YDIwmqJruNzKumcE1YQjKzNtuAXixEbYxKlO7aHUWRH3qAu/E0rC/oyA99pbmkMdNr oZJWlQU+1DWQA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4N0yP768jnz6tmJ; Mon, 31 Oct 2022 03:52:27 +0100 (CET) From: Ihor Radchenko To: Max Nikulin Cc: emacs-orgmode@gnu.org Subject: Change default value of org-clock-x11-idle-program-name (was: org-x11idle-exists-p with emacs --daemon) In-Reply-To: References: <871qqs6gqs.fsf@free.fr> <87y1t0lgfo.fsf@localhost> <87mt9egknp.fsf@localhost> Date: Mon, 31 Oct 2022 02:53:07 +0000 Message-ID: <874jvkn1po.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Emacs-orgmode" Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1667184783; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=xkhmTarjwYIGt6ug6k7hN6BBS3Q6WZRwABFIFpMfQ4s=; b=IeR/8dqUIS4YTnWoUbfkQ+CXA0JDroxcykmG94tRxbOgDAEuNe2v3lZo324ATnrJkEKn9a oTWjvPY2ymFTnHKGx24Rn1I4jVSzxwQeIyzEgWd5cvAKl/rqiS9Rv93fa3P/lXV/dVYbNj aOBtVJMAn/wah2ks5yyTVU+vjh6TXsbyItXQ1G29+p5u2bSJK9XKXZb4mQ6SuIzTrxTiJZ MFXxAFCYDMJxtTmDlpNSXCcmNdwQ1R7aAyckTaCLDZlkpbiaANoh8qABxMPeFsVC5xg9xm 8zWI6klqhax9tgLU7vpWoQU6iCQiRXTH7qgRzEdUHnZW7vcc0NYicZujpzDVHQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667184783; a=rsa-sha256; cv=none; b=GSHxVjj45vkvX2LJqBYSwioZmOYNT4U2fsXlB0mY9rjq7abGWbaBS5toMDjtLcQDaZ9Huv Lnkidy+65+4OYuOoFPDU0+PKV56qbSjsmCTGAC+Cl0jPI0/PAF/JcnkDKDM6cFAhN+3q/N Om3Dkd39Qdk20wqfdo59N71q9h7zPLpWjtlO1dIN6l6f54nAdpRMq1TwMxJGfRvN2Ff2H5 fQp7TZitK90KXKPrMjahELrTiE9lLvxDQgp7MoBOFxwlgS6+FBu+Jvu7nXjhpbnn8KUU1t pqpiKEeaDvVh/HCwWgv73ra397h+aBA2NkuqzhF7Gzcuyp642r5V3Mz5c2EM9w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="AbUjo/st"; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.76 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="AbUjo/st"; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 51F68E281 X-Spam-Score: -5.76 X-Migadu-Scanner: scn0.migadu.com X-TUID: mdVQnj9P9J5g Max Nikulin writes: > x11idle as `org-clock-x11idle-program-name' default is questionable as > well. Debian, Arch, Gentoo have xprintidle packages and this tool have > some additional code. AFAIU, x11idle was a very old hard-coded default. Later, this variable had been introduced without changing the default. What we can do is check if xprintidle executable is available and use it. Otherwise, fall back to x11idle to retain backwards compatibility on systems that do no have xprintidle installed. WDYT? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at