emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] org-user-idle-seconds: Add support for logind


From: Nathaniel Nicandro
Subject: Re: [PATCH] org-user-idle-seconds: Add support for logind
Date: Wed, 22 Mar 2023 16:15:59 -0500
User-agent: mu4e 1.8.13; emacs 28.2

Ihor Radchenko <yantar92@posteo.net> writes:

> Nathaniel Nicandro <nathanielnicandro@gmail.com> writes:
>
>> I would like to submit a patch that adds support for logind to
>> `org-user-idle-seconds`.  This patch has been working for me for a long
>> while now and I thought it time for me to submit it.  I've contributed
>> to Emacs in the past so my paperwork should be on file.
>
> Thanks!
>
> Though I do not see any commits associated with Nathaniel Nicandro or
> your email in Emacs git repo.
> Bastien, may you check FSF records?
>
>> Let me know if any changes should be made.
>>
>> lisp/org-clock.el | 29 +++++++++++++++++++++++++++++
>>  1 file changed, 29 insertions(+)
>
> Please provide the commit message. See
> https://orgmode.org/worg/org-contribute.html#commit-messages

Done in the attached updated patch.

>
>> +(defvar org-logind-dbus-session-path
>> +  (when (and (boundp 'dbus-runtime-version)
>> +             (require 'dbus nil t)
>> +             (member "org.freedesktop.login1" 
>> (dbus-list-activatable-names)))
>> +    (dbus-call-method
>> +     :system "org.freedesktop.login1"
>> +     "/org/freedesktop/login1"
>> +     "org.freedesktop.login1.Manager"
>> +     "GetSessionByPID" (emacs-pid))))
>
> Please provide a docstring for the new variable.
>
> Also, this new feature is worth documenting in ORG-NEWS.

Done.

>
> Otherwise, the patch looks good.

Attachment: 0001-lisp-org-clock.el-Add-support-for-logind.patch
Description: Add support for logind v2

-- 
Nathaniel

reply via email to

[Prev in Thread] Current Thread [Next in Thread]