It changes link flags on linux too, so needs to be tested there.
I'm not totally sure but using 1 for thumbnails might work
1 https://developer.apple.com/documentation/quicklookthumbnailing/qlthumbnailreply/2887474-replywithimagefileurl?language=objc