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 697674 - Associate an icon with the Pitivi / GES file mimetypes
Associate an icon with the Pitivi / GES file mimetypes
Status: RESOLVED OBSOLETE
Product: pitivi
Classification: Other
Component: Build and packaging
Git
Other Linux
: Normal enhancement
: Git
Assigned To: Pitivi maintainers
Pitivi maintainers
Depends on: 727319
Blocks:
 
 
Reported: 2013-04-09 23:42 UTC by Jean-François Fortin Tam
Modified: 2015-10-20 13:24 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
MIME association patch (1.35 KB, patch)
2014-03-13 13:11 UTC, Georges Basile Stavracas Neto
needs-work Details | Review
proposed icon (137.23 KB, image/svg+xml)
2014-03-20 17:31 UTC, Jean-François Fortin Tam
  Details

Description Jean-François Fortin Tam 2013-04-09 23:42:30 UTC
In file managers like Nautilus, Pitivi project files currently show up as a blank plain-text icons, which does not make it very easy to spot them (unless you're in a folder with only multimedia files). Ideally, there should be a video editing project icon associated with those kinds of files.

I have some icons for that purpose, that have been sitting around in a dusty folder since 2009. I have attempted simply placing them in 

/usr/share/icons/hicolor/scalable/mimetypes
as text-x-xptv.svg and text-x-xges.svg

...then doing:
gtk-update-icon-cache --force --ignore-theme-index /usr/share/icons/hicolor/

...but they still don't show up in Nautilus 3.6 (even if Nautilus does know the correct mimetype for my .xptv and .xges test files).

If someone wants to fix this (and *prove* that it works - you can simply use a random icon for the sake of testing, initially), patches are welcome!
Comment 1 Georges Basile Stavracas Neto 2014-03-13 13:11:06 UTC
Created attachment 271715 [details] [review]
MIME association patch

A first approach on this bug.
This patch enable running 'update-mime-database' at 'make install'. It is not the final patch, I'm pondering about the fix.

I can't remember any other project that associates it's file types at GNOME, if I find I'll see how they associate the icon.
Comment 2 Thibault Saunier 2014-03-13 13:34:34 UTC
I wonder if that should not be done at the GES level?
Comment 3 Jean-François Fortin Tam 2014-03-17 17:28:08 UTC
I think it's the application's responsibility (not the library), especially if there are more than one application that can open a particular mimetype (txt, pdf files are good examples of that situation).

As for which applications could be taken as an example... hmm, this is less popular nowadays than it used to be! Besides WINE (it actually creates icons associations, for example .fla files if you install the Flash creation tool), I would have imagined gnumeric or blender, but afaics their mimetype icons are actually part of gnome-icon-theme!
Comment 4 Jean-François Fortin Tam 2014-03-20 17:31:14 UTC
Created attachment 272507 [details]
proposed icon
Comment 5 Georges Basile Stavracas Neto 2014-04-02 20:32:28 UTC
Ok, I'm really close to fix this annoying bug.

On my system, I managed to 1) associate text-x-xges mimetype with Pitivi and 2) associate the mimetype with the icon. That's really good, but why it's not solved yet?

Well, we have a last-minute issue. Actually, .xges files are a subclass of text/plain mimetype. Unfortunatelly, Nautilus tries to preview plain text files, and since no previewer is associate to .xges, what we have is the plain blank icon. The same happens for .py files.

Actually, the solution is very simple: make text-x-xges not a subclass of text/plain. But am I allowed to do that?
Comment 6 Alex Băluț 2014-04-08 13:23:29 UTC
Review of attachment 271715 [details] [review]:

pitivi.xml missing from the patch
Comment 7 Thibault Saunier 2015-10-20 13:24:21 UTC
This bug has been migrated to https://phabricator.freedesktop.org/T3025.

Please use the Phabricator interface to report further bugs by creating a task and associating it with Project: Pitivi.

See http://wiki.pitivi.org/wiki/Bug_reporting for details.