keepassxc icon indicating copy to clipboard operation
keepassxc copied to clipboard

Attachments won't open on AppImage

Open nohing opened this issue 2 years ago • 13 comments

Overview

Hello! Attachments do not work anymore with the new release KeePassXC 2.7.3 With the old KeePassXC 2.7.1 I added some attachments to some entries. But with the new release I cannot access to those attachments anymore, I cannot open them. Can you fix it?

Expected Behavior

I expect that when I click open, the attachment opens

Actual Behavior

With the new release KeePassXC 2.7.3, when I try to open the attachment nothing happens, not even an error message, nothing.

KeePassXC - Version 2.7.3 Revision: d8483d3 Distribution: AppImage

Qt 5.15.2 Debugging mode is disabled.

Operating system: Linux Mint 20.3 CPU architecture: x86_64 Kernel: linux 5.4.0-131-generic

Enabled extensions:

  • Auto-Type
  • Browser Integration
  • SSH Agent
  • KeeShare
  • YubiKey
  • Secret Service Integration

Cryptographic libraries:

  • Botan 2.19.1

Operating System: Linux Desktop Env: Cinnamon

nohing avatar Oct 26 '22 09:10 nohing

#8644 fixes this

droidmonkey avatar Oct 26 '22 10:10 droidmonkey

Actually this is not broken at all... make sure you have an appropriate application registered to open the attachment file type or save them to disk.

droidmonkey avatar Oct 26 '22 11:10 droidmonkey

I don't understand... what should I do?

nohing avatar Oct 26 '22 11:10 nohing

I have an appropriate application registered to open the attachments, because I do open them with KeePassXC 2.7.1, but the problem is that I can't open with KeePassXC 2.7.3

nohing avatar Oct 26 '22 11:10 nohing

I just opened attachments in 2.7.3, please provide a screenshot of where in the application you are encountering this issue

droidmonkey avatar Oct 26 '22 12:10 droidmonkey

Attachment_issue_KPXC_2_7_3

When I click Open, nothing happens.

nohing avatar Oct 26 '22 12:10 nohing

What happens if you create a text file on your hard disk and run xdg-open filename.txt ?

phoerious avatar Oct 26 '22 12:10 phoerious

It works, it opens the file.

nohing avatar Oct 26 '22 13:10 nohing

This might be an appimage specific problem

droidmonkey avatar Oct 26 '22 13:10 droidmonkey

Is there a way to fix it?

nohing avatar Oct 26 '22 13:10 nohing

Try using out flatpak or ppa instead of appimage. Or downgrade back to 2.7.1.

droidmonkey avatar Oct 26 '22 14:10 droidmonkey

same problem on flatpak

rislah avatar Oct 27 '22 07:10 rislah

Works fine on Flatpak: image

droidmonkey avatar Oct 27 '22 11:10 droidmonkey

How can I help you debug this? It doesn't do anything for me, however xdg-open in terminal opens up editor no problem

rislah avatar Oct 27 '22 22:10 rislah

Compiled from source has no problems. Everything works.

AppImage prints this to the terminal: /usr/local/bin/emacs: symbol lookup error: /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0: undefined symbol: g_uri_ref

Flatpak has no errors, but I'm guessing it's related to the above.

libglib2.0-0/unstable,now 2.74.1-1 amd64 [installed,automatic]
libglib2.0-bin/unstable,now 2.74.1-1 amd64 [installed,automatic]
libglib2.0-data/unstable,now 2.74.1-1 all [installed,automatic]
libglib2.0-dev-bin/unstable,now 2.74.1-1 amd64 [installed,automatic]
libglib2.0-dev/unstable,now 2.74.1-1 amd64 [installed,automatic]
lrwxrwxrwx 1 root root     19 Oct 25 22:38 /usr/lib/x86_64-linux-gnu/libgobject-2.0.so -> libgobject-2.0.so.0
lrwxrwxrwx 1 root root     26 Oct 25 22:38 /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 -> libgobject-2.0.so.0.7400.1
-rw-r--r-- 1 root root 391384 Oct 25 22:38 /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.7400.1

rislah avatar Oct 28 '22 06:10 rislah

The error message indicates that you are trying to open a file in emacs, but Emacs crashes due to an incompatible dynamic library version. This is not an error in KeePassXC, but in your Emacs installation.

phoerious avatar Oct 28 '22 07:10 phoerious

There is not any problems in my Emacs installation. When I compile KeePassXC myself, everything is OK.

rislah avatar Oct 28 '22 07:10 rislah

The error is thrown by your emacs, not by us. Try changing your file type association to a different editor.

phoerious avatar Oct 28 '22 07:10 phoerious

XPCOMGlueLoad error for file /usr/lib/firefox/libmozgtk.so:
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0: undefined symbol: g_uri_ref
Couldn't load XPCOM.

This is Firefox handling mimetype text/plain. It throws this error with every GTK applications.

No problem with xdg-open or KeePassXC compiled from src. Problem related to AppImage/Flatpak

rislah avatar Oct 28 '22 07:10 rislah

Alright, I can reproduce it with the AppImage, but the error is a missing "x-scheme-handler/file". This is a bug either in Qt or the system MIME handling, nothing we can fix. As a workaround, you can add a file:// schema handler to ~/.config/mimeapps.list: https://bugs.kde.org/show_bug.cgi?id=442721

phoerious avatar Oct 28 '22 08:10 phoerious

Attachments not opening in 2.7.5 on ubuntu 22.04 (my old version 2.0.3 works fine, also xdg-open works fine)

mat-twg avatar Jul 10 '23 10:07 mat-twg