Re: [Thunar-dev] PDF Thumbnailer

2007-08-06 Thread Benedikt Meurer
Erlend Davidson wrote:
> 
> Benedikt Meurer wrote:
>> Erlend Davidson wrote:
>>   
 The GNOME thumbnailers are used by default. Any thumbnailer installed
 via a .desktop file overrides a conflicting GNOME thumbnailer.
   
>>> But what if, as in the case for a pdf/ffmpeg thumbnailer I want to 
>>> under-ride (as a fallback) the gnome ones?
>>> 
>> Not possible ATM.
> it's actually pretty tricky to implement my suggestion in 
> thunar-vfs-update-thumbnailers-cache.c.  It would need to store an 
> multidimensional array of the mimetypes, the thumbnailer and the 
> priority and only select the thumbnailers with the highest priority.

I'd suggest to create a simple script for such thumbnailers, which tries
to invoke the GNOME thumbnailer first, if present, and falls back to
your custom thumbnailer. That way you don't need any tricky stuff in
Thunar, and esp. no confusing priorities, but you can handle everything
in your thumbnailer scripts.

Benedikt
___
Thunar-dev mailing list
Thunar-dev@xfce.org
http://foo-projects.org/mailman/listinfo/thunar-dev


Re: [Thunar-dev] PDF Thumbnailer

2007-08-06 Thread Erlend Davidson


Benedikt Meurer wrote:
> Erlend Davidson wrote:
>   
>>> The GNOME thumbnailers are used by default. Any thumbnailer installed
>>> via a .desktop file overrides a conflicting GNOME thumbnailer.
>>>   
>> But what if, as in the case for a pdf/ffmpeg thumbnailer I want to 
>> under-ride (as a fallback) the gnome ones?
>> 
>
> Not possible ATM.
it's actually pretty tricky to implement my suggestion in 
thunar-vfs-update-thumbnailers-cache.c.  It would need to store an 
multidimensional array of the mimetypes, the thumbnailer and the 
priority and only select the thumbnailers with the highest priority.
___
Thunar-dev mailing list
Thunar-dev@xfce.org
http://foo-projects.org/mailman/listinfo/thunar-dev