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 <GV0P278MB0243C4C43FB0F5ABA59D1FC7DDB1A@GV0P278MB0243.CHEP278.PROD.OUTLOOK.COM>
Hi Tony, 

Thanks. Can you build an app that does not need the spell checker library ? and in Xcode you can show the missing backtrace entries

https://stackoverflow.com/questions/28853183/how-can-i-access-hidden-abbreviated-stack-frames-in-the-xcode-6-debugger-where <https://stackoverflow.com/questions/28853183/how-can-i-access-hidden-abbreviated-stack-frames-in-the-xcode-6-debugger-where> 

Perhaps these offer a clue ? 

Best, 

Stefan 

Von: [email protected] <[email protected]> im Auftrag von Tony Kennedy <[email protected]>
Datum: Mittwoch, 15. November 2023 um 16:07
An: wx-users <[email protected]>
Betreff: Re: MacOS document permissions, is there a way to detect these before the app starts? 

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 <_blank> 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 <_blank>. 





-- 
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/5198dd4c-f3d1-422f-8136-30dfdcbe0db5n%40googlegroups.com <https://groups.google.com/d/msgid/wx-users/5198dd4c-f3d1-422f-8136-30dfdcbe0db5n%40googlegroups.com?utm_medium=email&amp;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/GV0P278MB0243C4C43FB0F5ABA59D1FC7DDB1A%40GV0P278MB0243.CHEP278.PROD.OUTLOOK.COM.
smime.p7s (application/x-pkcs7-signature, 10.9 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.