bitwarden / clients

Bitwarden client apps (web, browser extension, desktop, and cli).
https://bitwarden.com
Other
8.96k stars 1.17k forks source link

Bitwarden app not showing when second display is turning off #2617

Open 3579km opened 3 years ago

3579km commented 3 years ago

Describe the Bug

Bitwarden app is not showing when second display is turning off

Steps To Reproduce

  1. Connect second display monitor to PC
  2. Run Bitwarden app
  3. Move Bitwarden app to the second screen
  4. Disconnect second display monitor from PC
  5. Reboot PC
  6. Run Bitwarden app

Expected Result

After rebooting PC and running Bitwarden app should running normally

Actual Result

After rebooting PC and start Bitwarden, the app is running in background mode (available in Task manager), but not showing its interface. Possibly app expecting second display which now is disconnected from computer

Screenshots or Videos

Environment

Additional Context

mctehlers commented 3 years ago

Starting having this today. But I can't get it to show on either displays anymore. App is running but no window.

Shtoomik commented 3 years ago

Same here - Bitwarden application window was not displaying on any screen, while running in the taskmanager and the icon was visible in the taskbar. Removing (backing up) the config folder in AppData/Roaming made the app work again as expected.

eliykat commented 3 years ago

This may be related to how we save the Electron window position. There should be some way of checking whether the saved position is out of bounds and adjusting accordingly.

stefan-isele commented 2 years ago

The C:\Users\\AppData\Roaming\Bitwarden\data.json contains a property 'mainwindowSize'. When my bitwarden app was not visible, mainwindowSize.displayBounds.x and mainwindowSize.displayBounds.y where both 0. You need to close bitwarden before making any changes in data.json as the app overwrites values when its closed. I changed both x and y to 256, restarted and the window was visible again. However, currently my displaybounds have negative values, but the app is fine...

GameBurrow commented 2 years ago

I have a laptop + multi monitor setup, and after disconneting my monitors and restarting the computer, had the same issue - bitwarden did not detect that it's trying to appear out of current monitor).

mainwindowSize.displayBounds.x in C:\Users<USER>\AppData\Roaming\Bitwarden\data.json was something negatice - changing that to 0 fixes the issue.

pstarliu commented 1 year ago

Having similar issue, probably due to laptop + multiple monitors layouts(landscape + portrait), and change the negative y value fixed it.

ynaamad commented 1 year ago

This fixed it for me as well. Nice find! The specific change in the C:\Users\<USER>\AppData\Roaming\Bitwarden\data.json file was setting global.window.x and global.window.y both from -32768 to 0.

marcotielen commented 1 year ago

same issue here. data.json workaround works, but this could use some fixing.

lsteger1983 commented 5 months ago

Had this bug several times already, REALLY annoying. Always had to set "x": 0 or "y": 0 in data.json under global window, restart Bitwarden app and then it reappeard on the main monitor again.

Please fix it soon, thanks.

piotrlis98 commented 4 months ago

Still an issue.

stocktaylor commented 2 months ago

Just had this happen to me today as well, so still a current issue

UUSim commented 2 months ago

Happened here also. The setting is now named global_desktopSettings_window.

cloudrootab commented 1 month ago

Had this happen to me today. 2024.7.0. It happens quite often. However, this was the first time that I couldn't move it to the main screen with Win+Arrowkey

Faulty/buggy %appdata%\Bitwarden\data.json "global_desktopSettings_window": { "width": 2748, "height": 1430, "isMaximized": false, "displayBounds": { "x": 0, "y": 0, "width": 5120, "height": 1440 }, "zoomFactor": 1, "x": 6814, "y": 0 },

It worked again after setting "zoomFactor": 1, "x": 0, "y": 0 },