Hi,

I'm trying to investigate [1]. The gist of it is that when I start my
system, X gets started and I land at a login screen with my custom
theme. After I log in and I run ‘slimlock’, the theme is crippled (no
background and boxes are in wrong places).

Today I tried to look into the matter but I got really confused:

* greping for slimlock only shows a single referenc that's not a comment
or inside a patch file:

./nixos/modules/services/x11/display-managers/slim.nix:124:
security.pam.services.slimlock = {};

What confuses me here is that the slimlock application as can be seen at
[2] is not actually packaged. From what I gather in that case is that
‘slimlock’ binary is provided by the ‘slim’ package and if I were to
compile [2], I would get a binary of the same name, aiming to achieve
the same goal but that does some things differently. This alone makes me
think that this is where my source of trouble is: do I need to package
[2] and invoke that binary instead?

* Checking the slim.nix module I see how it is ran:

execCmd = "exec ${pkgs.slim}/bin/slim";

But running ‘slim’ from my terminal seems to do absolutely nothing.

Perhaps it has something to do with the run-once.patch:

-       Run();
+       exit(OK_EXIT);

And a comment in the default.nix for slim package:
      # Exit after the user's session has finished.  This works around
      # slim's broken PAM session handling (see
      #
http://developer.berlios.de/bugs/?func=detailbug&bug_id=19102&group_id=2663).

berilos has shut down so I don't know why this patch is necessary.
However it might mean that I can't call ‘slim’ and expect it to do
something once I'm already logged in.


With this I'm rather confused: is ‘slimlock’ I'm using something that
comes from the original slim project and that perhaps happens to be
broken somehow on NixOS? Notably, slimlock -p pathtomytheme works perfectly.

Do we need to package [2] and use that for locking? Is that what other
distros are doing? I notice that on Gentoo they used to have a slimlock
package but now don't. In fact at [3] they say that it has been
integrated into slim: does this mean [2] is obsolete? [4] seems to imply
they are still separate projects. What should I be using?

Can someone more knowledgeable explain the situation? Is anyone using
slimlock with custom theme?

[1]: https://github.com/NixOS/nixpkgs/issues/2954
[2]: https://github.com/dannyn/slimlock
[3]: https://bugs.gentoo.org/show_bug.cgi?id=474892
[4]: https://bugs.gentoo.org/show_bug.cgi?id=489010

-- 
Mateusz K.
_______________________________________________
nix-dev mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-dev

Reply via email to