keepassxreboot / keepassxc

KeePassXC is a cross-platform community-driven port of the Windows application “Keepass Password Safe”.
https://keepassxc.org/
Other
20.03k stars 1.42k forks source link

2.7.9 does not load database from CLI anymore - Linux #10955

Open djlalle opened 1 week ago

djlalle commented 1 week ago

Overview

new version does not load anymore the database from linux CLI

Steps to Reproduce

keepassxc --keyfile /home/.../keyfile /home/.../database.kdbx the same behavior if I use a password instead of the keyfile

Expected Behavior

downgraded to keepassxc-2.7.8-3 working fine, it opens the database from CLI

Actual Behavior

just start, without opening the database

Context

KeePassXC - 2.7.9 Revision: REVISION

Operating System: Linux Desktop Env: Sway Windowing System: Wayland

droidmonkey commented 1 week ago

We didn't touch that code. Can you describe how you have keepassxc installed and what happens when you issue the command?

djlalle commented 1 week ago

thanks a lot for your answer :) Arch linux, I had installed keepassxc with pacman and upgraded I start keepassxc from the Swaywm config file but I had to downgrade, since 2.7.9 start with no database

djlalle commented 1 week ago

I can confirm that keepassxc 2.7.9-1 using this command from the terminal: keepassxc --keyfile /home/.../keyfile /home/.../database.kdbx start wit no database keepassxc-2.7.8-3 with the same exact command, instead starts with the database requested

droidmonkey commented 1 week ago

What Linux distro are you using? Arch? Mint?

djlalle commented 1 week ago

Arch

TomKTW commented 1 week ago

I'm suspecting that I'm getting a same issue here on KeePassXC 2.7.9 when launching the app from KDE Plasma (Wayland) launcher on Arch with one of my recently opened databases.

It should look like this (with note that others have empty list): image

This issue has occured recently after updating the package for KeePassXC that seems to be updated on Arch repository to 2.7.9-1 about 5 days ago (previous release seems to be 2.7.8-3).

It seems that KeePassXC does actually open the database properly. However, the side bar and bottom info bar are gone and root folder is the default folder that's opened when the database is open. I'm assuming this is the actual issue that was reported.

I've tried to make a screencast to replicate this issue on its initial state: Screencast_20240625_090855.webm

On initial start, when you open the database, everything is collapsed and root folder is open. I'm assuming that everyone in here has nothing in their root folder and instead, they're using sub folders. This way, their database is acutally loaded, but they are in an empty folder and they can't navigate around.

A workaround for this is simply going to left or bottom side of window and try to resize those bars bar back, which I've done in the screencast for the sidebar, and that state remained even after restarting the application.

Another workaround is to close the database again (without closing the application) and re-open it. This will temporarily restore the layout until the application is closed and reopened again, which will cause it to go back to "broken" state again.

After resizing both bars, it should go back to original state, as shown here: image

If this is valid even for others, I'm assuming that KeePassXC 2.7.9 has somehow broken state of default folder, side bar and bottom bar on initial start where the first database is opened.

droidmonkey commented 1 week ago

Related change: https://github.com/keepassxreboot/keepassxc/pull/10641