On Friday, 2011-05-20, Federico Mena Quintero wrote: > On Fri, 2011-05-20 at 12:06 +0800, PCMan wrote: > > UI operations: > > select file in window > > open folder (this can be better than using mime-type handlers for > > folders IMO) show properties of selected files > > > > Is it possible to standardize these common operations? > > We can certainly standardize on the UI operations. What should we use > for the name - org.freedesktop.FileManager1 ? (numbered for further > additions) > > I just threw this together quickly; haven't validated it or anything: > > <!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection > 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd"> > > <node> > <interface name="org.freedesktop.FileManager1"> > <method name="ShowFile"> > <arg name="uri" direction="in" type="s"/> > <arg name="parent_window_id" direction="in" type="x"/> > <arg name="timestamp" direction="in" type="x"/> > </method> > > <method name="ShowDirectory"> > <arg name="uri" direction="in" type="s"/> > <arg name="parent_window_id" direction="in" type="x"/> > <arg name="timestamp" direction="in" type="x"/> > </method> > </interface> > </node> > > Both signatures for the ShowFile and ShowDirectory methods are identical > - uri, parent_window_id, timestamp.
Any reason why one method, e.g. ShowURI, isn't sufficient? The implementing object or whatever it delegates to is most likely able to figure out whether it is dealing with a file or directory. For two distinct methods we would have to define what would happen if you passed a file URI to the ShowDirectory method or the other way around, probably requiring specifying D-Bus errors. Cheers, Kevin -- Kevin Krammer, KDE developer, xdg-utils developer KDE user support, developer mentoring
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ xdg mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/xdg
