From: ludo@gnu.org (Ludovic Courtès)
To: Efraim Flashner <efraim@flashner.co.il>
Cc: 31342@debbugs.gnu.org
Subject: [bug#31342] [PATCH 2/2] gnu: services: Add Enlightenment desktop service.
Date: Mon, 07 May 2018 18:49:43 +0200 [thread overview]
Message-ID: <87bmdr5s2g.fsf@gnu.org> (raw)
In-Reply-To: <20180502164723.13994-2-efraim@flashner.co.il> (Efraim Flashner's message of "Wed, 2 May 2018 19:47:23 +0300")
Efraim Flashner <efraim@flashner.co.il> skribis:
> * gnu/services/desktop.scm (<enlightenment-desktop-configuration>,
> enlightenment-desktop-service-type): New variables.
> (enlightenment-desktop-service): New public variable.
> * doc/guix.texi (Desktop Services): Document the service.
In guix.texi, could you document ‘enlightenment-desktop-service-type’
and ‘enlightenment-desktop-configuration’?
[...]
> +(define-record-type* <enlightenment-desktop-configuration>
> + enlightenment-desktop-configuration
> + make-enlightenment-desktop-configuration
> + enlightenment-desktop-configuration
> + (enlightenment enlightenment-package (default enlightenment)))
Actually, unless you expect more configuration elements to be added to
this record eventually, you might be better off without a record and
simply using the package as the value for that service.
WDYT?
> +(define (enlightenment-setuid-programs enlightenment-desktop-configuration)
> + (match-record enlightenment-desktop-configuration
> + <enlightenment-desktop-configuration>
> + (enlightenment)
> + (list (file-append enlightenment
> + "/lib/enlightenment/utils/enlightenment_sys")
> + (file-append enlightenment
> + "/lib/enlightenment/utils/enlightenment_backlight")
> + ;; TODO: Move this binary to a screen-locker service.
> + (file-append enlightenment
> + "/lib/enlightenment/utils/enlightenment_ckpasswd")
Perhaps enlightenment_ckpasswd needs a PAM entry as well, like
‘screen-locker-service-type’ does?
> + (file-append enlightenment
> + (string-append
> + "/lib/enlightenment/modules/cpufreq/linux-gnu-"
> + (string-drop-right (%current-system) 6) ; drop '-linux'
Rather:
(match (string-tokenize (%current-system) (char-set-complement (char-set #\-)))
((arch "linux") (string-append "linux-gnu-" arch))
((arch "gnu") (string-append "gnu-" arch)))
> +(define* (enlightenment-desktop-service
> + #:key (config (enlightenment-desktop-configuration)))
> + "Return a service that adds the @code{enlightenment} package to the system
> +profile, and extends dbus with the ability for @code{efl} to generate
> +thumbnails and makes setuid the programs which enlightenment expects to have
> +their setuid bit set."
> + (service enlightenment-desktop-service-type config))
Not needed! :-)
Thank you,
Ludo’.
next prev parent reply other threads:[~2018-05-07 16:50 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-02 16:44 [bug#31342] [PATCH 0/2] Enlightenment Desktop Service Efraim Flashner
2018-05-02 16:47 ` [bug#31342] [PATCH 1/2] gnu: enlightenment: Fix setuid program locations Efraim Flashner
2018-05-02 16:47 ` [bug#31342] [PATCH 2/2] gnu: services: Add Enlightenment desktop service Efraim Flashner
2018-05-07 16:49 ` Ludovic Courtès [this message]
2018-05-07 19:03 ` Efraim Flashner
2018-05-08 13:24 ` Ludovic Courtès
2018-05-13 15:36 ` Efraim Flashner
2018-05-07 16:42 ` [bug#31342] [PATCH 1/2] gnu: enlightenment: Fix setuid program locations Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87bmdr5s2g.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=31342@debbugs.gnu.org \
--cc=efraim@flashner.co.il \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).