#1 Allow wildcard for ignore option

closed
nobody
None
5
2014-05-10
2013-01-09
elboulangero
No

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 !

Discussion

  • elboulangero
    elboulangero
    2013-01-09

    Replace strcmp by fnmatch

     
    Attachments
  • lieven
    lieven
    2013-01-10

    Hi, thank you!
    This is definitely a must-have feature...
    I will apply the patch soon.

    Greetings,

    lieven

     
  • lieven
    lieven
    2013-05-24

    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!

     
  • lieven
    lieven
    2014-05-10

    • status: open --> closed
    • Group: --> Next Release (example)