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 794187 - files-preview: Note in Ubuntu about installing gnome-sushi
files-preview: Note in Ubuntu about installing gnome-sushi
Status: RESOLVED FIXED
Product: gnome-user-docs
Classification: Core
Component: gnome-help
3.26.x
Other Linux
: Normal normal
: ---
Assigned To: Maintainers of Gnome user documentation
Maintainers of Gnome user documentation
Depends on:
Blocks:
 
 
Reported: 2018-03-08 22:13 UTC by Gunnar Hjalmarsson
Modified: 2018-03-19 16:17 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Note about installing gnome-sushi (1.26 KB, patch)
2018-03-08 22:19 UTC, Gunnar Hjalmarsson
none Details | Review
Note about installing gnome-sushi 2 (1.36 KB, patch)
2018-03-09 22:30 UTC, Gunnar Hjalmarsson
committed Details | Review
Translators note (1.07 KB, patch)
2018-03-18 16:33 UTC, Gunnar Hjalmarsson
committed Details | Review

Description Gunnar Hjalmarsson 2018-03-08 22:13:10 UTC
The gnome-sushi package needs to be installed for the preview feature to work. However, in Ubuntu gnome-sushi is not installed by default, so I propose a conditional note about it in Ubuntu.
Comment 1 Gunnar Hjalmarsson 2018-03-08 22:19:24 UTC
Created attachment 369474 [details] [review]
Note about installing gnome-sushi

Patch with proposed change added. If you approve, please commit - I don't have commit access. Thanks!
Comment 2 André Klapper 2018-03-09 10:55:41 UTC
The code style I've used so far is:

<if:test="platform:ubuntu">
  <note style="info package">
    <p>You need to install <app>gnome-sushi</app> to perform these steps.</p>
      <if:choose xmlns:if="http://projectmallard.org/if/1.0/">
        <if:when test="action:install">
        <p><link action="install:gnome-sushi"
           href="ftp://ftp.gnome.org/pub/gnome/sources/sushi/"
           style="button">Install gnome-sushi</link>
        </p>
      </if:when>
    </if:choose>
  </note>
</if>

Not sure if that's helpful / better.
Comment 3 Gunnar Hjalmarsson 2018-03-09 22:30:40 UTC
Created attachment 369528 [details] [review]
Note about installing gnome-sushi 2

Thanks for submitting that example, André. A consistent appearance style is indeed good, so I submitted a new patch with a separate link button etc.

However, there are two reasons why I didn't follow the style completely:

1. AFAIK, that method for installing does not work on Debian based OSes like Ubuntu.[1]

2. I want the install button to show up also on the HTML version of the page.

   http://people.ubuntu.com/~gunnarhj/files-preview.html

So it would be great if someone could commit the new patch.


[1] This makes me fear that there is a need to have Debian/Ubuntu conditionals for all such install links. But that would be another, bigger project.
Comment 4 Petr Kovar 2018-03-12 18:43:03 UTC
Review of attachment 369528 [details] [review]:

Thanks for the patch, committed as f7bcf724370e237af74f9bdb2839fea30dd25063.
Comment 5 Gunnar Hjalmarsson 2018-03-18 16:33:14 UTC
Created attachment 369831 [details] [review]
Translators note

I propose the addition of a translators note as suggested here:

https://mail.gnome.org/archives/gnome-doc-list/2018-March/msg00084.html
Comment 6 Petr Kovar 2018-03-19 16:17:40 UTC
Review of attachment 369831 [details] [review]:

Thank you, committed as ec1aedc09ed086c747a89a72486ae34bf3dd2b9a.