dev builds
themes manual
device status forums
mailing lists
IRC bugs
dev guide

Rockbox mail archive

Subject: Re: Viewing Files With Plugins

Re: Viewing Files With Plugins

From: Björn Stenberg <>
Date: Thu, 8 Jan 2004 20:31:33 +0100

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.

Received on 2004-01-08

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy