Skip to content

Running commands on NixOS fails #22

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ianmjones opened this issue Apr 5, 2022 · 0 comments
Open

Running commands on NixOS fails #22

ianmjones opened this issue Apr 5, 2022 · 0 comments

Comments

@ianmjones
Copy link

When running streamdeckd on NixOS it looks like a command has been started as a PID is returned and no error shown, but the command does not actually start.

2022-04-05-08-39-56_978x281_scrot

In the above screenshot streamdeckui has in theory been started by the Stream Deck via a button push, but it never shows up.

This is because streamdeckd uses something similar to /bin/sh -c '/usr/bin/nohup streamdeckui' to start the streamdeckui command. While NixOS has /bin/sh available for backwards compatibility, /usr/bin/nohup does not exist, but nohup is available on the PATH at a build dependent nix store path:

2022-04-05-08-50-02_2365x305_scrot

I expect nohup is going to be available on the default PATH for any Linux distro, and therefore I think it would be safe to call nohup without the /usr/bin/ prefix.

PR incoming! 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant