[Gpephone-devel] Adding new entry to .desktop file
WANG Gang RD-ILAB-PEK
gang.wang at orange-ftgroup.com
Thu Jan 3 04:56:58 CET 2008
Hi, Florian
Based on our last meeting in Beijing, some new information of an
application is to be added to its .desktop file to manifest its
capabilities of acting upon certain types of data.
I am thinking of doing this as following:
Mime=audio/mp3:Open;application/ogg:Edit
the key is 'Mime'
diferrent mime types and actions are delimited by a semi colon ';'
each mime type is followed by a colon ':' which introduces the
action(s)
for the same mime type, if this application is capable of achieving
more than one action, separate them by a comma ',', for example:
audio/mp3:Open,Edit
mime types are based on iana's specification, but we are not limited
in this domain, we can freely add any mime types if appropriate.
When applauncher parses the .desktop file, it will store the
information in a hash table by using each mime/action pair (in form of
'mime:action') as the key and application's name as the value.
What is your idea?
BR
Gang
More information about the Gpephone-devel
mailing list