Showing a file in the file manager

Kevin Krammer kevin.krammer at gmx.at
Fri May 20 11:02:51 PDT 2011


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/xdg/attachments/20110520/180ce0cc/attachment-0001.pgp>


More information about the xdg mailing list