[Gpephone-devel] 答复: 答复: MIME actions (was: Re: Adding new entry to.desktop file)
WANG Gang RD-ILAB-PEK
gang.wang at orange-ftgroup.com
Mon Jan 14 10:32:59 CET 2008
Having a number serves the purpose of differentiate the sections since it is not allowed to have 2 sections with the same name :(
> -----邮件原件-----
> 发件人: Nils Faerber [mailto:nils.faerber at kernelconcepts.de]
> 发送时间: 2008年1月14日 17:29
> 收件人: WANG Gang RD-ILAB-PEK
> 抄送: Florian Boor; Gpephone devel
> 主题: Re: [Gpephone-devel] 答复: MIME actions (was: Re: Adding
> new entry to.desktop file)
>
> 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