nix-community / nix-on-droid

Nix-enabled environment for your Android device. [maintainers=@t184256,@Gerschtli]
https://nix-on-droid.unboiled.info
MIT License
1.15k stars 65 forks source link

procps commands return "uptime" message #286

Open unode opened 10 months ago

unode commented 10 months ago

I'm not really sure why but both pgrep and pkill from the procps package result in an uptime message instead of the expected command.

A screenshot is perhaps clearer:

Screenshot_20230826_202159_Nix

Any ideas how to work around this? I was trying to use pkill from a script and ran into this confusing output. The screenshot shows only pgrep but the output is the same for pkill.

t184256 commented 9 months ago

We're doing funky stuff here:

https://github.com/nix-community/nix-on-droid/blob/039379abeee67144d4094d80bbdaf183fb2eabe5/modules/environment/login/login.nix#L7C1-L12C1

maybe it's a consequence of that