-
-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IpcRenderer.tsx:50 Error: bookmarkDataIsStale - try recreating the bookmark #732
Comments
This may be relevant? Or not. https://stackoverflow.com/questions/23954662/what-is-the-correct-way-to-handle-stale-nsurl-bookmarks |
Any workaround for this? |
@msdisme you could install it via brew. The app will still be signed and auto updated, but won't have the stale bookmark issue. |
@msdisme @msdisme I've continued investigating this, and I'm afraid I don’t have good news—at least for the Mac App Store version of Sleek in combination with Syncthing (or likely any other sync app that modifies the file). If the Mac App Store build of Sleek needs to work with a file on your computer, you must select it within Sleek. Doing so creates what’s called a Security Scoped Bookmark, which is essentially a hash that Sleek saves in your config file. Then, every time Sleek wants to read from or write to this file, it needs to prove it has the necessary permissions. Since Sleek knows the bookmark, it can verify that it has access. As far as I can tell, this process works reliably with files that are not altered by external sources. However, when Syncthing changes the file, the bookmark no longer matches the file. macOS will then refuse to allow Sleek access to the file, as it expects a different bookmark hash, which Sleek no longer has. To regain access, Sleek needs to recreate the bookmark. The only way to do this is by reopening the file via the file chooser. I was able to reproduce this issue with Syncthing, and as far as I understand, there’s nothing we can do on our end to resolve it. The only workaround is to install Sleek from outside the Mac App Store, which is fine because the releases on GitHub (or via Homebrew) are signed and notarized by Apple. |
Bug Report
Important
Please follow this template strictly when reporting bugs.
Reports that do not adhere to this template will not be addressed and will be closed.
App Version: 2.0.14
Platform: macOS Sonoma 14.6.1
Installation Method: App Store / Direct Download / Other
Expected Behavior:
my todo.txt file is a file that is being synced by Syncthing to other devices.
If the file changes locally due to a local (this computer) edit, the edit is reflected in Sleek and externally almost instantaneously.
If the local file changes due to a sync from a change on an external device, the change should also get reflected in Sleek.
Actual Behavior:
The change does not happen in Sleek and I get an error. The change does happen externally.
From the console:
and i have to remove and reopen the file to get it right.
each time I switch to a different todo tab and back to that tab, a new error msg appears.
closing and reopening does not work.
Steps to Reproduce:
see part 1.
Screenshots:
![Screenshot 2024-08-28 at 3 07 45 AM](https://private-user-images.githubusercontent.com/62230004/361925792-3e69cc35-81dd-4faf-a922-d44c35d6a5a0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0NTIzNzIsIm5iZiI6MTczOTQ1MjA3MiwicGF0aCI6Ii82MjIzMDAwNC8zNjE5MjU3OTItM2U2OWNjMzUtODFkZC00ZmFmLWE5MjItZDQ0YzM1ZDZhNWEwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDEzMDc1MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWUzZjUxMzhhYzkwNTAzZmZmYjBmNmQ1MzE5NzA5NjBiZTY5NjVlYzJiZTQ3YzZhNjI4NDU4NDM3NzU4YWQ5ZTYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.51UN-RCWNAZi5sgwdpHOgZEs9AXogC23BIGaP9uWOXk)
The text was updated successfully, but these errors were encountered: