Re: [dev] [slock] Need help working on the project
On Sat, Apr 13, 2019 at 07:57:23PM +0600, Enan Ajmain wrote:
> Hi,
>
> I wanted to try and add a background image to the slock utility. I
> have not worked on a project which needs "sudo" privilege. And now I
> can't figure out how to work on this. For now, I am doing the
> following.
>
> ```
> make
> sudo chown root:root ./slock
> sudo chmod u+s ./slock
> ./slock
> ```
>
> I am sure I can use the Makefile to do all this but I have no idea
> what the actual standard way to do all this is. Any suggestions would
> be appreciated.
>
> Thanks,
> Enan
Hi,
Why not develop the image drawing as a prototype separate to slock until
you have completed it and it needs integrating?
Failing that, the smoothest option is probably something along the lines
of temporarily removing the pieces of code that require root or check for
root. This, coupled with temporarily patching slock so it just unlocks on
a empty password input would make integration easier.
David
Received on Sun Apr 14 2019 - 10:19:45 CEST
This archive was generated by hypermail 2.3.0
: Sun Apr 14 2019 - 11:00:09 CEST