mime and freedesktop (was: Desktop Icons)

Thomas Leonard tal00r at ecs.soton.ac.uk
Mon Oct 6 13:31:30 CEST 2003


On Fri, 03 Oct 2003, edscott wilson garcia wrote:
[..]
> But how should the argument format string be written? (remember that we
> need to define multiple <xfce:application> elements for a single type)
> 
> Currently xffm has:
> <extension id=".tex" application="xterm" arguments="-e latex"/> 
> 
> maybe:
> 
> <glob pattern="*.tex"/>
> <xfce:application arguments="-e latex">xterm</application>
> 
> or maybe this (because it's easier to work with):
> 
> <glob pattern="*.tex"/>
> <xfce:application>
>   <app>xterm</app>
>   <arg>-e latex</arg>
> </application>
> 
> or maybe I can do anyway since the "xfce" prefix indicates the designer
> of the spec.

Yes, you can do whatever you want.
<xfce:application>xterm -e latex "$@"</xfce:application> might be easiest
(at least if anyone wants to hand-edit the file). That also allows
redirections, pipelines, etc.

The reason for the possible link with the .desktop spec is that you might
not want to present the raw command to the user, so then you try:

<xfce:application>
  <command>xterm -e latex "$@"</command>
  <description xml:lang='en'>Process with LaTeX</description>
  <description ...>
  ...
</xfce:application>

And then Gimp finds itself writing that out for every image format it
supports, etc. But if you don't care about displaying a human-readable
form of the command or an icon, then just go ahead and use the simpler
system...

> Please don't think I'm being obnoxious, I just don't have the clear
> picture I need to start coding.

HTH,


-- 
Thomas Leonard			http://rox.sourceforge.net
tal00r at ecs.soton.ac.uk	tal197 at users.sourceforge.net
GPG: 9242 9807 C985 3C07 44A6  8B9A AE07 8280 59A5 3CC1



More information about the Xfce4-dev mailing list