Allow wildcard for ignore option
Brought to you by:
lievenmoors
Hi,
it would be nice to be able to use wildcard when ignoring a client. Very useful for clients who have a random port number in their name.
For example, when I have amarok running (which use VLC backend), it appears in jack with the name vlc_1234 (1234 is a random number).
So I'd like to do something like that:
$ aj-snapshot -i vlc_* out.xml
If you think it's useful, I attach a patch for that feature. I used the fnmatch function for that, I didn't know it before. I have no idea whether this function exist on all systems, but it seems rather common,
Thanks for making aj-snapshot ! And happy new year !
Anonymous
Replace strcmp by fnmatch
Hi, thank you!
This is definitely a must-have feature...
I will apply the patch soon.
Greetings,
lieven
Hi, sorry I didn't apply the patch soon...
And know I see you've added this feature yourself.
I have already pulled your commit into the master
branch on gitorious. Thanks for your help!