Bug 154430 - User-friendly name of the document not used when accessing files on google drive via GIO
Summary: User-friendly name of the document not used when accessing files on google dr...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.4.5.1 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: CMIS
  Show dependency treegraph
 
Reported: 2023-03-28 16:27 UTC by Laurent Bigonville
Modified: 2025-03-23 16:06 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Screenshot (69.05 KB, image/png)
2025-03-23 15:51 UTC, Jeff Fortin Tam
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Laurent Bigonville 2023-03-28 16:27:23 UTC
Hello,

With GNOME, I'm accessing files on google drive via GIO

When opening a file via either nautilus/file browser or via the Open menu of LO, the name displayed above is not the name of the document but some random string (with the word "remote" in parenthesis).

The weird part is that the code seems to call the g_file_info_get_display_name() function

For what I can see the build in debian unstable is properly built with GIO support
Comment 1 Julien Nabet 2023-04-01 11:46:17 UTC
On pc Debian x86-64 with master sources updated today, I could reproduce this.
Comment 2 Jeff Fortin Tam 2025-03-23 15:51:58 UTC
Created attachment 199972 [details]
Screenshot

Adding an annotated screenshot to clearly illustrate the problem, showing LibreOffice's titlebar rendering of the GIO file ID instead of the file display name.

To reproduce:

1. On GNOME, enable a Google account in GNOME Settings' "Online Accounts" section

2. Launch Nautilus, connect to your Google account as if it was a regular networked folder mount

3. In "My Drive", paste an existing .odt, .docx or whatever such document from somewhere else

4. Click that resulting file to open it in LibreOffice

5. Observe the window title (as per screenshot)


See https://gitlab.gnome.org/GNOME/gvfs/-/issues/499 for context.

LibreOffice already seems to have this notion somewhere in its codebase indeed, as it mentions `G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME` once in: https://github.com/LibreOffice/core/blob/HEAD/ucb/source/ucp/gio/gio_content.cxx#L466

…but apparently not used in the context of the titlebar (and potentially elsewhere, such as subsequent "Save As" dialogs).

I've observed this issue still being present on 24.8 and 25.2.

---

Version: 25.2.1.2 (X86_64) / LibreOffice Community
Build ID: d3abf4aee5fd705e4a92bba33a32f40bc4e56f49
CPU threads: 8; OS: Linux 6.12; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Flatpak
Comment 3 Jeff Fortin Tam 2025-03-23 16:06:22 UTC
Note that I tested version 24.8 from Fedora's RPM repositories (not the flatpak version), whereas I tested version 25.2 from the Flathub flatpak version.

For Flatpak versions, there may be this additional problem on top, too:
https://gitlab.gnome.org/GNOME/gvfs/-/issues/504