Closed JakeSFR closed 2 years ago
BTW Does middle click the scan button in the toolbar work?
BTW Does middle click the scan button in the toolbar work?
Oh, actually, it does. I only tried deleting the cache via "Purge thumbnails disk cache" option, wasn't even aware of the middle-click action. But still, now at least the non-executable programs won't be called unnecessarily.
On the other hand, I just realized that the thumbnailer programs can be also AppDirs, in which case the G_FILE_TEST_IS_EXECUTABLE
test returns the AppDir's directory exec bit, not the AppRun's inside.
Maybe it's not a big deal, since dirs usually have the exec bit(s) set, so AppDir thumbnailers should still work as before.
But if you think it could pose some problems, feel free to revert the merge, I'm happy with the middle-click solution as well.
Thanks!
Thank you!
Hey Jun,
There's a minor problem with external thumbnailers. To reproduce:
The problem seems to be that even when the thumbnailer program/script is not executable, ROX still calls it (not generating any thumbnails, though), but what's worse, ROX remembers to not create thumbnails the next time you enter that directory (unless you restart ROX).
Not sure if there's a better way, but the fix that works for me is to simply check if the _thumbnailprogram is actually executable and only then return its path.