Re: MacOS document permissions, is there a way to detect these before the app starts?
Tony Kennedy <[email protected]>
| Newsgroups | gmane.comp.lib.wxwindows.general |
|---|---|
| Message-ID | <[email protected]> |
It loads some Dylibs, a library for spell checking, a 3rd party graphics library, that's all. I don't hit any code I can actually debug/inspect. In Xcode, it crashes on the first thread, function "start" and then "__abort_with_payload". If I allow the app to access Documents, everything is fine. Tony. On Wednesday, 15 November 2023 at 13:59:02 UTC Stefan Csomor wrote: > Hi Tony > > > > What other elements (global statics?) are running in your app that run > even before OnInit ? they might try access the documents folder > > > > Just my 0.02$, > > > > Stefan > > > > *Von: *[email protected] <[email protected]> im Auftrag von > Tony Kennedy <[email protected]> > *Datum: *Mittwoch, 15. November 2023 um 11:20 > *An: *wx-users <[email protected]> > *Betreff: *MacOS document permissions, is there a way to detect these > before the app starts? > > Hi all, > > > > On MacOS, I've got a user that clicked "No" to "Allow access to the > documents folder" when the app started up. The application crashes. I'd > prefer to put up a note saying "Cannot start, permissions problem". > > > > I tried putting a breakpoint in "wxApp::OnInit()" to see if I could > somehow detect if the app had permissions to start. But the app crashes > before this point. > > > > Does anyone know if there is there a way to do this using wx? > > > > Thanks in advance, > > > Tony. > > > > > > -- > Please read https://www.wxwidgets.org/support/mlhowto.htm before posting. > --- > You received this message because you are subscribed to the Google Groups > "wx-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/wx-users/4065a399-87f6-4adb-b16e-b4c836dbc1a4n%40googlegroups.com > <https://groups.google.com/d/msgid/wx-users/4065a399-87f6-4adb-b16e-b4c836dbc1a4n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Please read https://www.wxwidgets.org/support/mlhowto.htm before posting. --- You received this message because you are subscribed to the Google Groups "wx-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/wx-users/5198dd4c-f3d1-422f-8136-30dfdcbe0db5n%40googlegroups.com.
macCrash_01.jpg
(image/jpeg, 315.6 KB) - not displayed
macCrash_02.jpg
(image/jpeg, 84.7 KB) - not displayed