AW: MacOS document permissions, is there a way to detect these before the app starts?
Stefan Csomor <[email protected]>
| Newsgroups | gmane.comp.lib.wxwindows.general |
|---|---|
| Message-ID | <GV0P278MB024322D059875E3323D56F06DDB1A@GV0P278MB0243.CHEP278.PROD.OUTLOOK.COM> |
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 <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] <mailto:[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/GV0P278MB024322D059875E3323D56F06DDB1A%40GV0P278MB0243.CHEP278.PROD.OUTLOOK.COM.
smime.p7s
(application/x-pkcs7-signature, 10.9 KB) - not displayed