Skip to content
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

Add programs.ydotool.enable config option to run required ydotoold daemon #183659

Closed
PAI5REECHO opened this issue Jul 29, 2022 · 1 comment · Fixed by #303745 · May be fixed by #191911
Closed

Add programs.ydotool.enable config option to run required ydotoold daemon #183659

PAI5REECHO opened this issue Jul 29, 2022 · 1 comment · Fixed by #303745 · May be fixed by #191911

Comments

@PAI5REECHO
Copy link

Describe the bug

ydotool requires ydotoold to be running in order to be used otherwise it aborts and crashes (see ReimuNotMoe/ydotool#153 (comment)). It would make sense to have a NixOS configuration option in order to automatically configure ydotoold to run.

Steps To Reproduce

$ lldb ydotool type 'This is a test.'
(lldb) target create "ydotool"
Current executable set to 'ydotool' (x86_64).
(lldb) settings set -- target.run-args  "type" "This is a test."
(lldb) process launch
Process 1660480 launched: '/nix/store/p7ibf7viqwhp63szy4jxqba9njf19yf7-ydotool-1.0.1/bin/ydotool' (x86_64)
failed to connect socket: Connection refused
Process 1660480 stopped
* thread #1, name = 'ydotool', stop reason = signal SIGABRT
    frame #0: 0x00007ffff7e4cc1f libc.so.6`__pthread_kill_implementation + 239
libc.so.6`__pthread_kill_implementation:
->  0x7ffff7e4cc1f <+239>: mov    ebp, eax
    0x7ffff7e4cc21 <+241>: neg    ebp
    0x7ffff7e4cc23 <+243>: cmp    eax, 0xfffff000
    0x7ffff7e4cc28 <+248>: mov    eax, 0x0
(lldb) thread backtrace
* thread #1, name = 'ydotool', stop reason = signal SIGABRT
  * frame #0: 0x00007ffff7e4cc1f libc.so.6`__pthread_kill_implementation + 239
    frame #1: 0x00007ffff7e02042 libc.so.6`raise + 18
    frame #2: 0x00007ffff7ded49c libc.so.6`abort + 194
    frame #3: 0x000000000040143c ydotool`main + 636
    frame #4: 0x00007ffff7dee237 libc.so.6`__libc_start_call_main + 103
    frame #5: 0x00007ffff7dee2f5 libc.so.6`__libc_start_main@@GLIBC_2.34 + 133
    frame #6: 0x0000000000401471 ydotool`_start + 33
(lldb)

Expected behavior

Some NixOS module option (perhaps programs.ydotool.enable) that automatically configures and runs ydotool as a systemd service in the background.

Notify maintainers

@WilliButz @kraem

Metadata

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.18.10, NixOS, 22.11 (Raccoon), 22.11.20220619.0d68d7c`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.10.0pre20220620_16c6c6c`
 - nixpkgs: `/nix/store/1njdlszpc3bchdcwk45c3ndb0nfmwqcr-source`
@nixos-discourse
Copy link

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/prs-ready-for-review/3032/1724

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