Closed shuxiao9058 closed 6 days ago
@phoerious we will need to fix this
This also happens with macOS Sequoia when building KeePassXC locally. Not depending on the Xcode.
CGDisplayStreamCreate is deprecated see: https://developer.apple.com/documentation/coregraphics/1455170-cgdisplaystreamcreate
Screen capture is managed (as intended) with
m_appkit->setWindowSecurity(this->winId(), true);
it might be that this function can be remarked...
CGDisplayStreamCreate is deprecated see: https://developer.apple.com/documentation/coregraphics/1455170-cgdisplaystreamcreate
use ScreenCaptureKit instead
AppKitImpl.mm::199::37
....../AppKitImpl.mm</a>:199:37: error: 'CGDisplayStreamCreate' is unavailable: obsoleted in macOS 15.0 - Please
use ScreenCaptureKit instead.
199 | CGDisplayStreamRef stream = CGDisplayStreamCreate(CGMainDisplayID(), 1, 1, kCVPixelFormatType_32BGRA, nil,
Also notice deprecation for - (bool) activateProcess:(pid_t) pid
AppKitImpl.mm::117::37" ... /AppKitImpl.mm</a>:117:37: warning:
'NSApplicationActivateIgnoringOtherApps' is deprecated: first deprecated in macOS 14.0 -
ignoringOtherApps is deprecated in macOS 14
and will have no effect. [-Wdeprecated-declarations]
117 | return [app activateWithOptions:NSApplicationActivateIgnoringOtherApps];
The function that uses this call to CGDisplayStreamRef is actually just triggering the permission request to enable Screen Recording which is required for polling the window titles (if I recall correctly). If we can poll window titles using just the accessibility permission that would be ideal. Any ideas?
The function that uses this call to CGDisplayStreamRef is actually just triggering the permission request to enable Screen Recording which is required for polling the window titles (if I recall correctly). If we can poll window titles using just the accessibility permission that would be ideal. Any ideas?
I do it in my app without CGDisplayStreamRef and it works fine,
since keepassxc
is code signed
, it should be ok - the authorization is uniquely bound to the executable .
if it wasn't, you would have to clear old authorization manually for every upgrade.
Can you provide a code snippet from your app?
BTW, you can continue to build properly if you set the following environment variable before running cmake: MACOSX_DEPLOYMENT_TARGET=10.14
I'm using the keepassXC macos files as is and just
(I've credited you at the SBOM)
We are talking about two different things. The linked code hides the window from other processes and remote viewers. I'm referring to harvesting window titles for use by auto-type. This thread doesn't impact hiding the main window.
BTW, you can continue to build properly if you set the following environment variable before running cmake:
MACOSX_DEPLOYMENT_TARGET=10.14
This won't work for ARM builds. There it has to be at least 11.0.
Idk if this helps.
'CGDisplayStreamCreate' is unavailable: obsoleted in macOS 15.0 - **Please use ScreenCaptureKit instead**
Hi, is there anything new here? It seems there are also issues related to DisplayLink and KeePassXC, causing windows to sometimes become unmovable.
https://www.synaptics.com/products/displaylink-graphics/downloads/macos
refer to: https://github.com/keepassxreboot/keepassxc/discussions/10308