GNOME Bugzilla – Bug 697674
Associate an icon with the Pitivi / GES file mimetypes
Last modified: 2015-10-20 13:24:21 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!
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.
I wonder if that should not be done at the GES level?
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!
Created attachment 272507 [details] proposed icon
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?
Review of attachment 271715 [details] [review]: pitivi.xml missing from the patch
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.