Hi,
I have two related issues:
-
The database path defaults to ".sentry-native" in the current folder (app folder).
This is not useful on Mac/Windows, since these folders are not writable.
A better default would perhaps be some cache/local app data folder, eg:
Caches folder on Mac (URLForDirectory:NSCachesDirectory, inDomains:NSUserDomainMask),
%localappdata% on Windows (SHGetKnownFolderPath(FOLDERID_LocalAppData))
-
I use those folders in our app, but then I run into another problem, on Windows.
The %localappdata% is usually on C:, and if the user installs our app (and sentry.dll)
on another drive, sentry_init() fails.
Also, just curious:
3. Is the database needed if you build "standalone" with no backend?
We currently do that, but will probably change to use a backend later, so not a big issue.
Thanks,
Fredrik
Hi,
I have two related issues:
The database path defaults to ".sentry-native" in the current folder (app folder).
This is not useful on Mac/Windows, since these folders are not writable.
A better default would perhaps be some cache/local app data folder, eg:
Caches folder on Mac (URLForDirectory:NSCachesDirectory, inDomains:NSUserDomainMask),
%localappdata% on Windows (SHGetKnownFolderPath(FOLDERID_LocalAppData))
I use those folders in our app, but then I run into another problem, on Windows.
The %localappdata% is usually on C:, and if the user installs our app (and sentry.dll)
on another drive, sentry_init() fails.
Also, just curious:
3. Is the database needed if you build "standalone" with no backend?
We currently do that, but will probably change to use a backend later, so not a big issue.
Thanks,
Fredrik