Tuesday, July 2, 2024

permission – Preview quarantine insanity: it quarantines information as I am enhancing them

Preview appears to set the quarantine on information that it opens. Sort of, unpredictably. And, it could possibly be, that quarantine is ready randomly via different mechanisms; unsure. Let me illustrate.

I’ve a number of huge directories of jpeg information. So, I am going via, cropping a number of information directly in Preview. Cmd+Okay crop, Cmd+S save, down arrow on to the following file, dozens, normally no issues. Then I get to this one file, and, upon Save, it says ‘The doc “xxx.jpg” couldn’t be saved.’ Typically I am going to the terminal and do an ls -l@O on the file, however I do know what it may say: No rwx permission issues, no -O settings, only a quarantine.

Typically, I strive clearing the quarantine whereas open in Preview, however that by no means works, nonetheless can’t be saved. I attempted closing it, discarding modifications, however I haven’t got permission to try this, both. I strive doing a Duplicate, however I haven’t got permission for that both. In truth, I am unable to even shut the file, as a result of the one two choices are to avoid wasting or discard, and I haven’t got permissions to do both. The one manner out is to both crash Preview or to give up, the place it offers me an choice to Duplicate. I click on the button; possibly a reproduction is created. but it surely quits and I by no means see it.

I can undergo this routine time and again. I do away with all quarantines. Open the file in Preview. Immediately, a quarantine is ready on the file, together with one other attribute, cannot bear in mind. Delete all these xattrs, ls says no extra quarantine. Click on on the Preview window to convey it to the entrance; then click on again to terminal; the quarantine on the file is ready once more. Not one of the different information I have been cropping for the final half hour have their quarantines set, nor had any issues saving. Not one of the Unix permission bits appear to have any involvement, nor the Finder’s Get Data permissions; all the things is Learn & Write for everyone.

Usually, I do an xattr -c * . to do away with all of the quarantines that come out of nowhere. However, new information are available, from directories that I equally take away quarantines from. Perhaps their quarantines are set from downloading or bitrot or no matter. I really clear xattrs in a cron job as a result of the issue is so unhealthy; that helps so much. All the information do, in the end, come from obtain, however their xattrs are cleared, permissions set to 666, renamed, some transformed from pngs, and so forth.

My OS proper now’s ‘14.2.1 (23C71)’, but it surely’s been occurring for years, since no less than OS X.14, on my earlier Mac. There isn’t any quarantine set on any file in /System/Functions/Preview.app.

Does anyone else have this drawback? Does anyone have a clue as to what is going on on?

Primer on Quarantine: All Mac information have ‘prolonged attributes’, little extra chunks of information, usually textual content. Key-value like com.apple.quarantine units a quarantine on the file. Should you do ls -l, an @ reveals if a file has prolonged attributes. An ls -l@ will listing their keys and lengths. An xattr -l will listing their values. The worth of the quarantine attr says what app did it. An xattr -c deletes all of them on a file.

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles