[Gpephone-devel] 答复: MIME actions (was: Re: Adding new entry to.desktop file)

Nils Faerber nils.faerber at kernelconcepts.de
Mon Jan 14 10:28:51 CET 2008


WANG Gang RD-ILAB-PEK schrieb:
> Hi,
Hi!

>   I would go for solution 2 with some slight modifications:
> 
> [Desktop Entry]
> Version=1.0
> Type=Application
> Encoding=UTF-8
> Name=Foo Viewer
> Comment=The best viewer for Foo objects available!
> TryExec=fooview
> Exec=fooview %F
> Icon=fooview.png
> MimeType=image/x-foo
> X-KDE-Library=libfooview
> X-KDE-FactoryName=fooviewfactory
> X-KDE-ServiceType=FooService
> Actions=Inverse;Edit;
> 
> [Desktop Action 1]
> MimeType=image/x-foo
> Action=Inverse
> 
> [Desktop Action 2]
> MimeType=image/x-foo
> Action=Edit
> 
> ...

Looks quite sane, good!

Just one question: Do we need the numbering for some purpose? Or are
multiple entries of the same name not allowed?
In general the numbers do not make much sense since they suggest some
kind of order which there is not.  It would make later editing/changes
easier if the numbers could be omitted (i.e. removing an action from the
middle of the list would then not require to renumber half of the items).

[...]
>   If there are no any other different opinions, I will carry out
> implementation based on this hypothesis of .desktop file organization.

Excellent!

Cheers
  nils faerber

-- 
kernel concepts GbR        Tel: +49-271-771091-12
Sieghuetter Hauptweg 48    Fax: +49-271-771091-19
D-57072 Siegen             Mob: +49-176-21024535
--



More information about the Gpephone-devel mailing list