Samuel Cormier-Iijima wrote:
> Hey everyone,
> 
> tracker-tag and friends were starting to bother me because of their
> non-standard options usage; most didn't even have a --help option.
> I've patched tracker-tag to use GOptions, which offers the following
> benefits: 1) it automatically converts filenames from locale to utf8,
> and 2) automatically provides useful help output. This patch also adds
> support for tagging multiple files at once, like so:
> 
> tracker-tag -a music -a radiohead -r bad music/radiohead/*
> 
> which would tag all files in music/radiohead/ with "music" and
> "radiohead", and remove any instances of "bad." I know that these
> command line utilities aren't really meant to be used for day-to-day
> stuff (eventually we'll have a bling-ful barracuda :-P), but I don't
> think that means the CLI tools should be left out. Anyways, if this is
> useful, let me know and I can patch the other tools too.
> 

It looks good.

One query though - you removed realpath call in the patch. Tracker needs 
a fully qualified path and filename so realpath is used to translate a 
relative path to a full one for any file paramter.

I dont have time to test this now but unless GOption does this 
conversion (it might do it if the arg is defined as a file name and not 
a string?)then I think we need realpath around any file uri parameter.

Please confirm correct operation or send an amended patch.


-- 
Mr Jamie McCracken
http://jamiemcc.livejournal.com/

_______________________________________________
tracker-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/tracker-list

Reply via email to