<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"><html><head><meta name="qrichtext" content="1" /><style type="text/css">p, li { white-space: pre-wrap; }</style></head><body style=" font-family:'Consolas'; font-size:11pt; font-weight:400; font-style:normal;">On Thursday 31 July 2008, lariamat wrote:<br>
&gt; Can anybody confirm this?<br>
&gt;<br>
&gt; as far as I can see there is no possibility to open a file readonly with<br>
&gt; taglib.<br>
&gt; This affects tracker/beagle/strigi/any other indexer that uses inotify,<br>
&gt; because these reindex the file after reading the tag with taglib.<br>
&gt;<br>
&gt; Am I getting something wrong or isn't there a possibility to open<br>
&gt; readonly.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"></p>You can open a file read only, but TagLib only does this right now if opening it in read/write mode fails.  So you need to make the file itself read only to do this (which isn't a bad idea anyways if you're not going to tag it any further I guess).<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"></p>Adding a readOnly flag to TagLib::File() probably wouldn't be too hard though, everything is in taglib/toolkit/tfile.cpp<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"></p>Regards,<br>
 - Michael Pyne</p></body></html>