After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 756354 - on Google gvfs backend document title is incorrect
on Google gvfs backend document title is incorrect
Status: RESOLVED FIXED
Product: evince
Classification: Core
Component: general
3.18.x
Other Linux
: Normal normal
: ---
Assigned To: Evince Maintainers
Evince Maintainers
Depends on:
Blocks: 756379
 
 
Reported: 2015-10-10 18:42 UTC by Baptiste Mille-Mathias
Modified: 2018-04-03 15:25 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
shell: Use display and edit name for filename (14.95 KB, patch)
2018-04-01 16:32 UTC, Jason Crain
committed Details | Review

Description Baptiste Mille-Mathias 2015-10-10 18:42:41 UTC
When opening file from the google gvfs backend, the title is wrong. It uses the id google generated (like 0B29Bf5EQoJiUNE1adTB6WkZpVW8) instead of the name of the document.

On the bug 739008 and it is advised to use the gio property standard::display-name of the file. 

indeed if I use gvfs-info I can see the correct title in the attribute

gvfs-info 0B29Bf5EQoJiUNE1adTB6WkZpVW8
  ...
  standard::name: 0B29Bf5EQoJiUS3dQZndPUlBDelU
  standard::display-name: 2013-03-11 - Devis chg compteur eau jardins copro.pdf
  ...

I don't know where to fix but If I can have some guidance I could provide a patch.
Comment 1 Germán Poo-Caamaño 2015-10-10 18:56:50 UTC
You might want to take a look at shell/ev-window-title.[ch]

https://git.gnome.org/browse/evince/tree/shell/ev-window-title.c
https://git.gnome.org/browse/evince/tree/shell/ev-window-title.h
Comment 2 Jason Crain 2018-04-01 16:32:53 UTC
Created attachment 370416 [details] [review]
shell: Use display and edit name for filename

Files on Google Drive have randomly generated URIs. Instead of using the
URI, show the display-name in the UI for the password view and window
title, and use the edit-name when saving and printing.
Comment 3 Carlos Garcia Campos 2018-04-02 15:40:20 UTC
Comment on attachment 370416 [details] [review]
shell: Use display and edit name for filename

LGTM, thanks!
Comment 4 Jason Crain 2018-04-03 15:25:47 UTC
Attachment 370416 [details] pushed as fc93704 - shell: Use display and edit name for filename