[Thunar-dev] D-Bus interface
Brian J. Tarricone
bjt23 at cornell.edu
Tue Jan 31 23:46:40 CET 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 1/31/2006 2:27 PM, Benedikt Meurer wrote:
> I'd like to discuss the D-Bus interface(s) for Thunar, in order to fix
> bug #1384 for the alpha2 release. My initial idea was to put everything
> in one interface, but that's not a very good idea. So, there'll be
> several interfaces implemented by Thunar.
>
>
> Interface: org.xfce.FileManager
> ===============================
Is there a need to expose more detailed functionality, like moving or
copying files? I'm not sure why other apps would need to do this, but
it might be useful if someone can think of a use case.
Maybe expose a method to retrieve a file's mimetype? Enumerate and
eject removable devices? I dunno - just throwing out ideas here.
> Interface: org.xfce.RunDialog
> =============================
>
> This would be implemented by the file managers (or whatever other
> application) and xfrun4 would just invoke OpenDialog(), falling back to
> a simple(!) run dialog if no service is registered. This way the "Run
> Application" dialog will appear instantly in the future (I doubt that
> time permits us to implement this properly in Thunar/Xffm, but
> nevertheless we can change xfrun4, so all we need to do afterwards is to
> change Thunar/Xffm, and people won't have to wait for Xfce 4.6).
>
> /* Requests to display the run dialog using the specified
> * working_directory as base directory for applications run
> * from the dialog.
> */
> VOID OpenDialog (STRING working_directory)
> VOID OpenDialogOnDisplay (STRING working_directory, STRING display)
Looks good to me.
Benny, going on a slight tangent, I believe you mentioned before that
you did plan to have the backdrop handling in Thunar done for 1.0. It
might be useful to define a d-bus interface for this as well to cut down
on user confusion regarding settings. We could implement a settings
dialog (or reuse parts of xfdesktop) that calls d-bus methods to set the
backdrop (etc.) and not care which of xfdesktop, thunar, or xffm (if
Edscott is willing to implement this as well) is running. What do you
think?
-brian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (MingW32)
iD8DBQFD3+jQ6XyW6VEeAnsRAtMuAKCpDvwtnyelgQxqfae4YwpHqnUjvwCcDXFf
WCqddLkNeMTtpHVbbVQ43LQ=
=52mx
-----END PGP SIGNATURE-----
More information about the Thunar-dev
mailing list