Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MacOS Sonoma 14.5: KeepassXC window invisible when using DisplayLink #10757

Closed
fbaquero opened this issue May 14, 2024 · 15 comments
Closed

MacOS Sonoma 14.5: KeepassXC window invisible when using DisplayLink #10757

fbaquero opened this issue May 14, 2024 · 15 comments

Comments

@fbaquero
Copy link

Issue Description

After updating to MacOS Sonoma 14.5, KeepassXC no longer functions properly. When attempting to open the application, the database unlock window fails to display, and the application appears to freeze, leaving the user unable to interact with it.

Steps to Reproduce the Issue

1 Update the operating system to MacOS Sonoma 14.5.
2 Attempt to open KeepassXC.
3 Notice that the database unlock window fails to display, and the application appears to freeze.

Expected Behavior

After updating to MacOS Sonoma 14.5, KeepassXC is expected to function properly, including the ability to display the database unlock window and allow the user to interact with the application smoothly.

Current Behavior

After the update, KeepassXC does not display the database unlock window and appears to freeze, preventing effective user interaction with the application.

System Configuration

Operating System: MacOS Sonoma 14.5
KeepassXC Version: 2.7.8

Steps Taken to Resolve the Issue

Restarting the application.
Restarting the operating system.
Reinstalling KeepassXC.

Additional Details

This issue occurred after updating to MacOS Sonoma 14.5. Prior to this update, KeepassXC was functioning correctly.

@fbaquero fbaquero added the bug label May 14, 2024
@configdump
Copy link

Facing same problem when external displays connected with Display link manager after mac upgrade to the above version(Mac: 14.5, Keepassxc: 2.7.8).
When external displays are not connected, works as expected. Looks like QT compatibility issues.

@phoerious
Copy link
Member

phoerious commented May 14, 2024

Something changed in the way DisplayLink works in Sonoma. You have to disable screenshot protection or move the window to a native display in order to see it. https://keepassxc.org/docs/KeePassXC_UserGuide#_screenshot_security

@varjolintu
Copy link
Member

Mac Mini with a single external display doesn't have this issue.

@phoerious
Copy link
Member

phoerious commented May 15, 2024

I suppose DisplayLink now counts as a screen recording or something. You don't need it for running a single display, obviously, unless you are connecting to a cheap dock.

@fbaquero
Copy link
Author

Ok. Thanks. I confirm that the problem appears only when any extra monitor is connected.

A temporary solution may be to create a startup script (in case, like me, you had it configured to start automatically at boot):

Step-by-Step Guide to Create and Configure the Script

  1. Open AppleScript Editor:

    • Open the Script Editor application on your Mac (you can find it via Spotlight).
  2. Write the Script:

    • Write the following script in the editor:
      do shell script "/Applications/KeePassXC.app/Contents/MacOS/KeePassXC --allow-screencapture &>/dev/null &"
    • The &>/dev/null & at the end ensures that any output generated by the command is redirected to /dev/null (i.e., discarded) and that the command runs in the background, allowing the AppleScript to close immediately after starting KeePassXC.
  3. Save the Script as an Application:

    • Save the script by selecting File -> Export.
    • In File Format, select Application.
    • Give it a name (e.g., Start KeePassXC) and save it in a convenient location, such as your Applications folder.
  4. Set the Script to Start Automatically:

    • Open System Preferences -> Users & Groups.
    • Select your user and then click on the Login Items tab.
    • Add the application you just created (Start KeePassXC) to the list of startup items.
  5. Disable the Automatic Startup Option in KeePassXC:

    • Open KeePassXC the usual way (without the script) to access the preferences.
    • Go to the KeePassXC menu in the top menu bar and select Preferences.
    • In the preferences, find and uncheck the option Start at login or Launch KeePassXC at system startup.
    • Save the changes.

Process Summary

  1. Create the script in AppleScript and save it as an application.
  2. Set the script to run automatically at login.
  3. Disable the automatic startup option in KeePassXC’s preferences.

By following these steps, KeePassXC will start with the --allow-screencapture flag when you log in, and the AppleScript will close automatically after launching KeePassXC.

@droidmonkey
Copy link
Member

Everyone needs to file a bug with Apple because this is abnormal behavior.

@droidmonkey droidmonkey changed the title After updating to MacOS Sonoma 14.5, KeepassXC no longer functions properly MacOS Sonoma 14.5: KeepassXC window invisible when using DisplayLink May 15, 2024
@CDSeal
Copy link

CDSeal commented May 23, 2024

Updating to DisplayLink Manager v1.10.2 (Build 14) helped here.

@06Bine09
Copy link

I found a workaround for this issue - when you open KeePassXC you see an empty menu bar on top. You can click on the menu bar items even if they are invisible. When you click on the menu bar items the menu item list unfolds which you should be able to see. You can then navigate to the "View" menu bar item and click on "enable screen capture" in the menu item list of the "View" menu bar item. This is something I need to do after every restart of my mac but it works.

@askrix
Copy link

askrix commented May 23, 2024

Updating to DisplayLink Manager v1.10.2 (Build 14) helped here.

I confirm! This solution worked for me as well! Thanks for sharing ❤️

@3nt3
Copy link

3nt3 commented May 24, 2024

I found a workaround for this issue - when you open KeePassXC you see an empty menu bar on top. You can click on the menu bar items even if they are invisible. When you click on the menu bar items the menu item list unfolds which you should be able to see. You can then navigate to the "View" menu bar item and click on "enable screen capture" in the menu item list of the "View" menu bar item. This is something I need to do after every restart of my mac but it works.

lmao

@gw3437
Copy link

gw3437 commented May 29, 2024

I suppose DisplayLink now counts as a screen recording or something. You don't need it for running a single display, obviously, unless you are connecting to a cheap dock.

Displaylink counts as screensharing. Microsoft has been able to block "protected" information (like encrypted emails and data marked for internal use only) from screenshots and screenshares - I suspected Apple did something similar wtih their latest update.

FYI, Macbook Airs (m2 at least) don't support 2 external monitors and the only solution is a displaylink dock.

@phoerious
Copy link
Member

M2 does support two external displays. It's only the first-generation M1 and the 13" M2 MacBook that need DisplayPort.

@gw3437
Copy link

gw3437 commented May 29, 2024

M2 does support two external displays. It's only the first-generation M1 and the 13" M2 MacBook that need DisplayPort.

I'm on an M2 Air, didn't have that experience. (This was the whole reason why I got a Displaylink dock, to workaround this limitation.)

Do you have a source?
MacWorld seems to agree with me:

While the M1 and M2 MacBooks natively support just one monitor, the M1 and M2 Mac Mini does natively support up to two external monitors—one via the HDMI port and a second via USB-C. But the M1 and M2 models of the MacBook Air and MacBook Pro (plus the M3 MacBook Pro) support only a single external display over Thunderbolt.

The latest M3 MacBook Air models (13- and 15-inch) are the first to support more than one external display—as long as you close the laptop’s lid to allow for the second external display.

https://www.macworld.com/article/675869/how-to-connect-two-or-more-external-displays-to-apple-silicon-m1-macs.html

@phoerious
Copy link
Member

The 14" M2 MBP supports two displays. It's only the old 13" form factor MBPs (M1 and M2) that don't (I know both from first-hand experience). Dunno what's up with Airs, though.

@gw3437
Copy link

gw3437 commented May 29, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants