Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Re: Viewing Files With Plugins
From: Björn Stenberg (bjorn_at_haxx.se)
Date: 2004-01-08


Henrik Backe wrote:
> If ve are gonna mix default viewers and "other" viewers in the same
> directory we need a way to see the difference between them,

In my mind there is only one class of viewer plugins: those in the viewer dir, all treated alike.

> so we either have to stick with
> ".rockbox/viewer/[extension]-[anything].rock" with the possibilty for
> confusion or use somthing like ".rockbox/viewer/[extension]-default.rock"

The reason I and Daniel added the [anything] part of the filename was to avoid the problem of not knowing which plugin actually views which file type.

If the dir contains hex.rock, ansi.rock and txt.rock, it's not easy seeing which plugin you have actually assigned to view which file. Calling them hex-hexedit.rock ansi-johnsviewer.rock and txt-emacs.rock at least gives the possibility of keeping an identifying mark on each file.

> Another drawback, if we keep all the viewers in the same directory, with the
> ".rockbox/viewer/[extension]-[anything].rock" scheme is that then we can not
> use "-" in viewer plugin names.

Sure we can: txt-text-viewer.rock would be perfectly acceptable. We simply can not use "-" in extensions.

-- 
Björn



Page was last modified "Jan 10 2012" The Rockbox Crew
aaa