Comment 9 for bug 1857377

Zachary Waldowski (zwaldowski) wrote :

Hey, thanks! Us snowflakes really appreciate it.

Since you mentioned sandboxing, it does appear there is a deeper problem at work:

```
~ cd /Applications/calibre.app/Contents/Frameworks
Frameworks spctl -a -vvvv QtWebEngineCore.framework/
QtWebEngineCore.framework/: rejected (invalid destination for symbolic link in bundle)
origin=Developer ID Application: Kovid Goyal (NTY7FVCEKP)
Frameworks ls -la QtWebEngineCore.framework/Versions/Current/Resources/
total 8
drwxr-xr-x@ 9 zw admin 288 Dec 12 15:32 .
drwxr-xr-x@ 6 zw admin 192 Dec 12 15:34 ..
-rw-r--r--@ 1 zw admin 631 Sep 5 11:47 Info.plist
lrwxr-xr-x 1 zw admin 89 Dec 12 15:44 icudtl.dat -> ../../../../../ebook-viewer.app/Contents/ebook-edit.app/Contents/SharedSupport/icudtl.dat
lrwxr-xr-x 1 zw admin 113 Dec 12 15:44 qtwebengine_devtools_resources.pak -> ../../../../../ebook-viewer.app/Contents/ebook-edit.app/Contents/SharedSupport/qtwebengine_devtools_resources.pak
lrwxr-xr-x 1 zw admin 98 Dec 12 15:44 qtwebengine_locales -> ../../../../../ebook-viewer.app/Contents/ebook-edit.app/Contents/SharedSupport/qtwebengine_locales
lrwxr-xr-x 1 zw admin 104 Dec 12 15:44 qtwebengine_resources.pak -> ../../../../../ebook-viewer.app/Contents/ebook-edit.app/Contents/SharedSupport/qtwebengine_resources.pak
lrwxr-xr-x 1 zw admin 109 Dec 12 15:44 qtwebengine_resources_100p.pak -> ../../../../../ebook-viewer.app/Contents/ebook-edit.app/Contents/SharedSupport/qtwebengine_resources_100p.pak
lrwxr-xr-x 1 zw admin 109 Dec 12 15:44 qtwebengine_resources_200p.pak -> ../../../../../ebook-viewer.app/Contents/ebook-edit.app/Contents/SharedSupport/qtwebengine_resources_200p.pak
```

That's definitely considered outside of the sandbox. It's not really any special applesauce; chroot or containers on Linux could conceivably run into similar problems. I don't know what the rationale is for ebook-edit.app having its own copies; since it also relaunches the main binary, it seems like one copy can live inside `QtWebEngineCore`.

Anyway, if you're happy with the relaunching way, that's wonderful! Thanks you so much, again, for all your hard work, and have a happy holidays.