On Thu, Aug 28, 2008 at 09:59:41PM +0300, Axel Thimm wrote:
On Thu, Aug 28, 2008 at 11:16:05AM -0500, Rex Dieter wrote:
> Axel Thimm wrote:
>
>> Maybe xdg-open needs two modes, read-only and editing?
Add a third one as "ask user which one of the N editors/viewers to
use, if there are more than one registered" (e.g. not only the
preferred one, see also below).
> I'd argue this is a problem better solved one level higher, via
> mimetypes (somehow).
You mean that apps register as png/viewer-only and png/editor for
example? Actually mimetypes are for describing the data only, so the
extra information for the applications ability to view/edit would have
to be encoded differently.
But still if a file browser just sees some file (say a png file) and
one double clicks on it, if it just starts xdg-open it will not be
able to pass on what the user wants to do, view or edit.
Windows (TM) seems to have a default of "open as in viewing" and a
non-default (with Shift?) as "open as in editing". I think there is
even an "ask the user which ones of the 100 png viewer to use". Anyone
know how OS X solves this?
BTW looks like gnome has this already sorted out:
http://developer.gnome.org/doc/whitepapers/SystemConfig/mime-info.html
applications register with two different keys: view/open. There are
even fm-view/fm-open for file managers and even a convert-to-ascii
variant.
Maybe xgd has similar functionality?
--
Axel.Thimm at
ATrpms.net