unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Chris Marusich <cmmarusich@gmail.com>
To: ng0 <ng0@n0.is>
Cc: 27083@debbugs.gnu.org, admin@doloresportalatin.info
Subject: [bug#27083] screen-lockers: i3lock-color and i3lock-fancy
Date: Sat, 02 Dec 2017 01:59:29 -0800	[thread overview]
Message-ID: <878teltpq6.fsf@gmail.com> (raw)
In-Reply-To: <20171201092731.aea3sdto6dgsqisk@abyayala> (ng0@n0.is's message of "Fri, 1 Dec 2017 09:27:31 +0000")

[-- Attachment #1: Type: text/plain, Size: 3775 bytes --]

ng0 <ng0@n0.is> writes:

> Hi Chris,
>
> thanks for your review. I'll have no time to address it before next week,
> just a couple of comments.

No worries!  Whenever you can update it, that's great!  We're almost
there; I think the next update will probably be the final one.

> Chris Marusich transcribed 9.7K bytes:
>>
>> ...
>> 
>> ng0 <ng0@infotropique.org> writes:
>> 
>> > I've changed my mind. As there's also 'i3lock' (without the -color suffix)
>> > but we don't package it (yet), it would take away the freedom to
>> > decide which i3lock you want to use.
>> > The author of i3lock-fancy wantsus to use i3lock-color, but there's
>> > also a check and it falls back to the normal i3lock.
>> >
>> > Therefore I think it must be up to people using i3lock-fancy to
>> > install i3lock-color AND i3lock-fancy in their system profile
>> > (or just i3lock-color in systemprofile + suid it, and i3lock-fancy
>> > in the user profile).
>> 
>> I agree with your assessment.  For now, I think that's a fine plan,
>> although I dislike the fact that by adding the i3lock-fancy package by
>> itself, we will make it possible for someone to naively install just
>> that package to their profile, only to find that it doesn't work because
>> i3lock itself is not installed in the system as a screen locker program.
>> However, I can't think of a better solution at this time, and we're
>> already doing something similar for the other screen locker packages.
>> For example, if you install xscreensaver into your profile without also
>> installing it into the system as a screen locker service, xscreensaver
>> won't work because it won't be setuid-root.  So I think it's OK.
>
> We'll continue to have these problems with applications, maybe we should
> consider it a bug and find a common description. So far it's limited to
> screensavers, but I can't think of a reason why this problem would stay
> limited to applications of the screensaver class.

I've created an email thread to discuss this in more detail on
guix-devel.  The subject is: "Installing some packages results in
"incomplete deployment"".  Please look for it and reply there if you
have any other thoughts on that matter.

For this patch, though, I think it's fine to ask users to install
i3lock-fancy and also add to their operating system declaration a screen
locker service that uses i3lock.  That's how the existing screen lockers
have been packaged.

> For this specific application (i3lock-fancy), I could ask meskarune if she'd like to add
> an error message if none is place already. At the top of the script
> check for the existence of the i3lock binary in the users path (simply
> 'i3lock', not (only) total paths). If not found, throw an error and abort
> with a message that "you need to install i3lock-color".

I think that would be nice.  I also think we can add i3lock-fancy to
Guix even before she makes those changes.

>> > i3lock-color should be removed before commiting this patch,
>> > and we should add a note about this to the description. Like:
>> > "You will need to install i3lock or one of its variants (like
>> > i3lock-color) to make use of i3lock-fancy."
>> 
>> I don't understand: why do we need to remove i3lock-color?
>
> i3lock-fancy is Bash script. I'm patching in the references it
> should keep. The 2 calls of i3lock in there must be just 'i3lock',
> this will call the binary with the suid, not for example the one
> in the store path of i3lock-color (which never worked).
> More correct would be this remark:
> i3lock-color should be removed from the inputs before commiting
> this patch, and we should add a note about this to the description.

I understand now, and I agree.

-- 
Chris

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

  reply	other threads:[~2017-12-02 10:00 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-26 11:33 bug#27083: screen-lockers: i3lock-color and i3lock-fancy ng0
2017-11-17  9:55 ` [bug#27083] " Chris Marusich
2017-11-17 10:18   ` ng0
2017-11-17 20:17     ` ng0
2017-11-17 20:57       ` ng0
2017-11-17 21:02         ` ng0
2017-11-17 21:19           ` ng0
2017-11-19 11:04             ` ng0
2017-12-01  7:20             ` Chris Marusich
2017-12-01  9:27               ` ng0
2017-12-02  9:59                 ` Chris Marusich [this message]
2017-12-09 13:25                   ` ng0
2017-12-09 14:25                     ` ng0
2017-12-11 13:47                     ` Ludovic Courtès
2017-12-11 14:03                       ` ng0

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=878teltpq6.fsf@gmail.com \
    --to=cmmarusich@gmail.com \
    --cc=27083@debbugs.gnu.org \
    --cc=admin@doloresportalatin.info \
    --cc=ng0@n0.is \
    /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).