keepassxreboot / keepassxc

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

Flatpak: keepassxc-cli "clip" operation fails with "xclip not found" #9252

Open BillDietrich opened 1 year ago

BillDietrich commented 1 year ago

Overview

When using the Flatpak version of KeePassXC on Linux, keepassxc-cli "clip" operation fails with "xclip not found". xclip is installed in the system, and can be run from the CLI.

Steps to Reproduce

  1. flatpak run --command=keepassxc-cli org.keepassxc.KeePassXC open /home/user1/.../KeePassDatabase.kdbx
  2. clip -a username /PATHTOANENTRY 45
  3. Get "All clipping programs failed. Tried xclip".

Expected Behavior

clip operation should work.

Actual Behavior

Get "All clipping programs failed. Tried xclip".

KeePassXC - Version 2.7.4 Revision: 63b2394 Distribution: Flatpak

Qt 5.15.8 Debugging mode is disabled.

Operating system: KDE Flatpak runtime CPU architecture: x86_64 Kernel: linux 6.1.18-200.fc37.x86_64

Enabled extensions:

Cryptographic libraries:

Operating System: Linux Fedora Kinoite Desktop Env: KDE Windowing System: X11

glemco commented 1 year ago

I guess you figured out xclip is not inside the flatpak.. Did you try something like

flatpak run --command=keepassxc-cli org.keepassxc.KeePassXC open /home/user1/.../KeePassDatabase.kdbx show -a username /PATHTOANENTRY 45 | xclip -sel clip

Basically getting what you want on stdout and feeding it to xclip should do the trick