Opening remote files (e.g. FTP) fails for some filetypes in Lubuntu

Lubuntu Version: 24.04.2 LTS
I encouter this problem since years, so probably many others

Desktop Environment: LXQt 1.4.0

Problem Description:
I encounter a problem with opening some files on a network share and already tried to file a bug report some years ago which was closed due to being filed against Lubuntu rather than a specific package. I hope this is the correct place to get help and information.

PCManFM-Qt is a rather easy way to access remote files e.g. via FTP, SMB, etc.
Connecting and navigating through the file structure works fine; many files can be opened as expected by double-clicking: Video-files play in VLC, images open in LXImage-Qt. But for some file-types this doesn’t work, e.g. pdf-files.

qpdfview opens with an error-message that it couldn’t open “/run/user/1000/gvfs/ftp:host=192.168.1.103,user=ak/ExampleFolder/Testpdf.pdf”.

What I’ve Tried:
I can go to the corresponding mountpoint (/run/user/1000/gvfs/ftp:host=192.168.1.103,user=ak/) via terminal but when I try to open any .pdf with qpdfview it fails in the same manner prints “Error: Document stream is empty”. When opening a Document (.odt/.doc/.pptx/…) with LibreOffice a message is displayed, that the document is currently locked. When I click on “Open a copy”, the document it is empty.

Since many tools show this comparable behavior I suppose it may be due to gvfs but I’m no expert on that matter.

I checked if this was a problem with qpdfview by installing evince and to my astonishment it is able to open the files but prints some errors which may help someone with a little more expertise to guide me in the right direction:

(evince:170001): Gtk-WARNING **: 08:50:37.130: Failed to parse /etc/xdg/xdg-Lubuntu/gtk-3.0/settings.ini: Keine Berechtigung

(evince:170001): GVFS-WARNING **: 08:50:37.421: The peer-to-peer connection failed: Error while getting peer-to-peer dbus connection: Verbindung ist gescheitert: Keine Berechtigung. Falling back to the session bus. Your application is probably missing --filesystem=xdg-run/gvfsd privileges.

(evince:170001): GVFS-WARNING **: 08:50:37.422: The peer-to-peer connection failed: Error while getting peer-to-peer dbus connection: Verbindung ist gescheitert: Keine Berechtigung. Falling back to the session bus. Your application is probably missing --filesystem=xdg-run/gvfsd privileges.

(evince:170001): GVFS-WARNING **: 08:50:37.424: The peer-to-peer connection failed: Error while getting peer-to-peer dbus connection: Verbindung ist gescheitert: Keine Berechtigung. Falling back to the session bus. Your application is probably missing --filesystem=xdg-run/gvfsd privileges.

(evince:170001): GVFS-WARNING **: 08:50:37.528: The peer-to-peer connection failed: Verbindung ist gescheitert: Keine Berechtigung. Falling back to the session bus. Your application is probably missing --filesystem=xdg-run/gvfsd privileges.

Relevant System Information:

evince: 46.3.1
qpdfview: 0.5.0
LibreOffice: 24.2.7.2 420(Build:2)

How did you install qpdfview and LibreOffice? deb, or snap, or flatpak, or…?

1 Like

If you mount the file system manually to a location in your home folder does it work OK (rather than using gvfs)?
Google AI has a decent looking guide using curlftpfs which i haven’t used (I don’t use ftp).
If the remote system Linux based? If so you can use SFTP via SSH instead of FTP

1 Like