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

clip function not working with flatpak #110

Open
vzorge opened this issue Mar 13, 2023 · 4 comments
Open

clip function not working with flatpak #110

vzorge opened this issue Mar 13, 2023 · 4 comments

Comments

@vzorge
Copy link

vzorge commented Mar 13, 2023

When using KeepassXC as a flatpak I cannot use the clip command. I get the following error: All clipping programs failed. Tried xclip
When installing keepassxc using apt install it works fine.

Is there any way I can get more info on what is wrong?

Specifics:
Commnand to connect: /usr/bin/flatpak run --branch=stable --arch=x86_64 --socket=x11 --command=keepassxc-cli org.keepassxc.KeePassXC.

OS: Pop_OS 22.04
KeepassXC version: 2.7.4 (flatpak) or 2.6.6 (apt version)

xclip version 0.13

@secretmango
Copy link

What does xclip do, what should it do? Do you use xclip deb? Would you want xclip to have permission over the apps container but not the other way around?

In general this is not an issue with the software but a main flatpak problem. Maybe ask in forums or on reddit if people accomplish this. Maybe it has to do with messaging hosts, which is complicated on Flatpak.

@vzorge
Copy link
Author

vzorge commented Mar 17, 2023

Well keepassxc-cli clip command should copy the password into the clipboard. By default it uses xclip for that.

I found that I can use the cli of keepassxc flatpak install by using the flatpak run command. One of the things I would like to do there is just use command line to get a password that I can then paste. But I cannot get keepassxc-cli clip to work under flatpak.

Since I can find nothing on it on the internet, I am wondering if other people have succesfully used the cli clip call with flatpak succesfully, which would mean it is a problem on my end, or that just noone uses it.

@secretmango
Copy link

So first its xclip so X11? There has to be a Wayland alternative soon, as Wayland is 95% usable and the future. Second you could alias your command?

alias keepassxc="flatpak run org.keepassxc.KeePassXC and see if there are cli commands.

The flatpak can copy stuff to the clipboard, so there is no permission/portal issue too.

@vzorge
Copy link
Author

vzorge commented Mar 17, 2023

I am using an alias. I have aliased the command to connect that I shared in my top post. That way I am able to connect to the cli (see command-keepassxc-cli).

Every command works fine, except that clip one, which throws the error mentioned.
Since I tried installing keepassxc native and noticed the clip command works there, I assumed it to be a flatpak issue. But I cannot find anything on it.
The main hit in google is now my question on Reddit about it.

It is not a huge issue, as I have a workaround, ie. install an older version thought apt.
But since noone seems to have the issue that I can find, I thought I would atleast ask if anyone else has this issue and knows how to fix it.

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

No branches or pull requests

2 participants