RFC: propose helper script interface for writing rules#70
RFC: propose helper script interface for writing rules#70Ella-0 wants to merge 2 commits intoilliliti:masterfrom
Conversation
illiliti
left a comment
There was a problem hiding this comment.
Thanks for working on this! I like the idea of passing control of properties to a helper script. It's much better option than adding special handling for properties.
|
@illiliti Will this not be merged into master/main? |
I like the idea, so it is highly likely I'll merge this. Just need to sort out issues with code. |
5ec5355 to
537ce84
Compare
|
Addressed all comments and added an example rules script to contrib with the |
One could access parent device via |
The problem with pipewire is it enumerates the following devices however the following is intended. card0 is missing. this is due to scan_devices working on |
|
Ah! Right. Forgot about this one. Well, we could switch our enumeration approach to appease pipewire. Let's keep it for later. |
43383b5 to
4f12d0a
Compare
41a653f to
5e8772f
Compare
| char *argv[] = { argv0, NULL }; | ||
|
|
||
| if (posix_spawn(&pid, argv0, &actions, NULL, argv, envp)) { | ||
| return -1; |
There was a problem hiding this comment.
close out_pipe and destroy actions
There was a problem hiding this comment.
int ret = posix_spawn(...);
posix_spawn_file_actions_destroy(&actions);
close(out_pipe[1]);
if (ret != 0) {
close(out_pipe[0]);
return -1;
}There was a problem hiding this comment.
You are still leaking out_pipe and actions here. Consider adopting the above code to fix the leak.
|
@illiliti any plans to merge this or work on it? |
|
Hopefully yes |
|
Do I understand correctly that every script would run for every event received by every process subscribed to events? |
|
Hi sorry about the delay on this. I am very very busy at the moment. |
Proposes the use of a helper script to allow setting udev properties as a replacement for udev rules. For example setting
ACP_IGNORE=1on the visense pcm in apple silicon macs.