It would be great to have KeePassXC without requiring x11 dependencies.
Can you see if its possible to build/package the cli separately, such that a keepasscx-cli port can be created, that depends on the main one, rather than a flavor (which conflicts with the other flavors). This may also be possible for the GUI portion.
(In reply to Kubilay Kocak from comment #1) Sorry, I don't have ports installed, but this should be possible as of merge #6280: https://github.com/keepassxreboot/keepassxc/pull/6280
Created attachment 236460 [details] Compile cli only 1. In addition to whatever I already had installed on my system, I needed to install these additional dependencies: pkg install -y qt5-core qt5-qmake qt5-buildtools qt5-network qt5-concurrent qt5-dbus qt5-linguisttools qt5-widgets botan2 2. Run cmake: cmake -DWITH_XC_X11=off -DWITH_TESTS=off -DWITH_APP_BUNDLE=off -DWITH_XC_UPDATECHECK=off -DWITH_XC_DOCS=off -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=Release 3. Run make: make keepassxc-cli 4. Run the cli: ./src/cli/keepassxc-cli --help
I've found two issues: 1. A "Couldn't load translations." warning message is always shown at the top. 2. Using a key file doesn't work - it will display "Enter password to unlock <db>:" . This patch only works when using a password prompt.