goldwarden icon indicating copy to clipboard operation
goldwarden copied to clipboard

Copy/paste under "System-wide Autotype" doesn't work on XFCE

Open gravelld opened this issue 1 year ago • 6 comments

I have installed Goldwarden using Flatpak and logged into Bitwarden's default server. I can list all my entries.

I have configured a hotkey in xfce to open the Autotype dialog, as described here:

dbus-send --type=method_call --dest=com.quexten.Goldwarden.autofill /com/quexten/Goldwarden com.quexten.Goldwarden.Autofill.autofill

I can search and find entries. When I press the down cursor to find the entry I want:

Screenshot_2024-03-28_15-33-54

I have tried Ctrl+P to copy the password. The Quick Access window disappears, but when I paste into another app nothing is pasted.

I have also tried Ctrl+U for the username, but that doesn't work either.

Is it something to do with the clipboard and the Flatpak sandbox?

I see a number of these messages from the daemon, but only when I scroll up/down, not when I try to copy:

[WRN] [15:35] [Goldwarden > Websocket] >>> Invalid message received, length too short

gravelld avatar Mar 28 '24 15:03 gravelld

Hmm, so actual autotype most likely won't work yet because XFCE (to my knowledge) does not implement the remote desktop portal, however there is this issue: https://github.com/quexten/goldwarden/issues/91 tracking an alternative implementation that supports XFCE.

For copy paste, that's a bug, and should work on XFCE. Thanks for the report!

quexten avatar Mar 29 '24 10:03 quexten

The Websocket message is an unrelated issue.

quexten avatar Mar 29 '24 10:03 quexten

So I'm a bit confused as to where "autotype" overlaps with copy and paste - exactly what should work here? I think I was taking "autotype" as just meaning a quick access copy and paste. Should I be able to use the above method to copy and paste into a terminal using only the keyboard and no app switching? That's my goal.

gravelld avatar Apr 02 '24 13:04 gravelld

So the "quick access" menu previously only supported autotype, and was called autotype menu at the time. At some point, I added copy paste, which - at first - only worked on wayland, but this bug should be fixed, and XFCE shoudl work too (which uses X11 as far as I know). I.e Autotype is not expected to work on XFCE at the moment, and won't until an alternative auto-type method gets implemented. Copy is expected to work on XFCE at the moment, if it does not this is a bug.

quexten avatar Apr 06 '24 00:04 quexten

At least autotype should work now on main #194. I also tested copy paste (on gnome but in flatpak) and it seems to work fine. Leaving this open until next release.

quexten avatar May 03 '24 22:05 quexten

I tried again (installed from Flatpak) but Ctrl+P on the quick access page then Ctrl+V pastes nothing.

Getting this in the console (I'm running the app from terminal):

g-dbus-error-quark: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.Background” on object at path /org/freedesktop/portal/desktop (19)

gravelld avatar May 09 '24 09:05 gravelld