pwsafe icon indicating copy to clipboard operation
pwsafe copied to clipboard

Problem with autotype, PWS 1.18.2 flatpak

Open jjberk opened this issue 1 year ago • 7 comments

Running Linux Mint 20.3, PWS 1.18.2 flatpak version.

If there is a \ (backslash) in my password, when I use \p in autotype, the backslash is replaced with a double backslash in the typed-in password in the browser form, thereby invalidating the password. Using the 'copy to clipboard' method, the password is correct.

Jaap Berkhout

jjberk avatar Feb 16 '24 11:02 jjberk

  1. Are you sure you are using flatpak version? Do you by any chance have both flatpak and deb version installed and you used deb version of program? Can you please provide print screen of Help | About where from tag we can get info if this is flatpak version or not.
  2. Did you change some of the flatpak permissions? Or did something else with flatpak settings?
  3. Can you please also provide the output from terminal command: echo $XDG_SESSION_TYPE

Why I am asking this questions, because I can't get Perform Auto Type to work in my Ubuntu 23.10 using Password Safe flatpak as I have reported in bug at Flathub's Password Safe bug tracker.

igor2x avatar Feb 16 '24 14:02 igor2x

System: Linux Mint 20.3 inxi -G: Device-1: NVIDIA TU116 [GeForce GTX 1660 SUPER] driver: nvidia v: 525.147.05 Display: x11 server: X.Org 1.20.13 driver: nvidia unloaded: fbdev,modesetting,nouveau,vesa resolution: 1680x1050~60Hz OpenGL: renderer: NVIDIA GeForce GTX 1660 SUPER/PCIe/SSE2 v: 4.6.0 NVIDIA 525.147.05

PasswordSafe (wxWidgets) v1.18.2 (tags/1.18.2fp4-0-g4062b93) Build date: Feb 7 2014 08:08:42

Flatpak info: Password Safe - Password management utility

      ID: org.pwsafe.pwsafe
     Ref: app/org.pwsafe.pwsafe/x86_64/stable
    Arch: x86_64
  Branch: stable
 Version: v1.18.2
 License: Artistic-2.0
  Origin: flathub

Collection: org.flathub.Stable Installation: system Installed: 44,7 MB Runtime: org.freedesktop.Platform/x86_64/23.08 Sdk: org.freedesktop.Sdk/x86_64/23.08

  Commit: c31f15421027960162013d96f74d00a809c6ec48bfb828628c3183404eb44423
 Subject: point to pwsafe commit/tag with fixes - take 4 (e26e7723)
    Date: 2024-02-07 08:17:13 +0000

Linux Mint .deb version 1.12 was purged and is not present on my system anymore.

Not as far as I know.

XDG_SESSION_TYPE is x11

jjberk avatar Feb 17 '24 10:02 jjberk

Update: This problem (backslash invalidating password with autotype, copy to clipboard works perfectly) also occurs with PasswordSafe v1.18.2 from .deb file.

jjberk avatar Mar 12 '24 10:03 jjberk

@jjberk, thanks for also confirming deb package. @ronys, can you please remove "flatpak" label, because it looks like from jjberk comment, this is not flatpak specific problem.


I can't reproduce this issue, because on my Ubuntu 23.10 Password Safe v1.18.2 flatpak and deb package, both AutoType does not work at all. But in my case I assume Password Safe does not work correctly or at all with Wayland display. I can't test this issue on X11 display (like @jjberk tested), because on my Ubuntu only Wayland display works and as soon I log into Ubuntu with X11 session Ubuntu fully freezes. In my case I assume this is completely different issue, Password Safe in Wayland may not be supported yet.

igor2x avatar Mar 12 '24 14:03 igor2x

Hi,

Linux Mint 21.3 (Cinnamon) has the ability to use a Wayland layer over the x-server. I tried this with PasswordSafe 1.18.2 and in this situation autotype does not at all work, and neither does "Browse to URL". Mind you, I do not know how good this Wayland 'emulation' is, the mint documentation describes it as experimental. Still, it looks as if PasswordSafe is NOT compatible with Wayland.

Have a nice day,

Jaap Berkhout

jjberk avatar Mar 12 '24 16:03 jjberk

Looks like there're 2 issues here:

  1. Password Safe can't type into Wayland applications
  2. The \ character is typed twice for password (works fine for username)

I can confirm both issues on Kubuntu 24.04.

For the first issue, it looks like other password managers are having the same problem. It could be that Wayland is missing some features.

I'm debugging the second issue, I'll open a PR if I can figure it out.

hxu1 avatar Jun 01 '24 23:06 hxu1

In a Windows VM, I see that \ in username is not typed, and \ in password is typed once. image

Relevant commit: https://github.com/pwsafe/pwsafe/commit/f690c01c8d698052c6f28c4d23680ac1f7a4ef13

hxu1 avatar Jun 01 '24 23:06 hxu1