[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: Qt6.5 QPermission
From: Marko Luther <marko.luther () gmx ! net>
Date: 2023-06-10 10:12:16
Message-ID: 4865EC3A-CD2B-4705-B957-3D2699CD58B6 () gmx ! net
[Download RAW message or body]
Dear Phil,
thanks for adding support for the Permission API to PyQt 6.5.1!
> > I add the following lines to the Info.plist of my app build with py2app.
> > <key>NSBluetoothAlwaysUsageDescription</key>
> > <string>MYAPP wants to access bluetooth</string>
> > This works only if running the final build. I did not find a way to
> > use QBluetooth on current macOS under Python3/PyQt6 on running from
> > source. I tried to add those lines to the "Python Launcher" (and by
> > this perhaps invalidating its code signature) without any success.
>
> The next snapshot includes permissions support. However (when making the changes to \
> Python's own Info.plist) the requestPermission() handler always seems to return \
> immediately with permission denied without putting up a dialog. Perhaps you will \
> have better luck when using py2app.
> Phil
I was away from keyboard AFK and only now could test this. It works as expected from \
within my py2app-build PyQt6 app on macOS and nicely shows the OS permission dialog \
showing the text string given in the Info.plist of the app.
Best,
Marko
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic