On Sun, Jan 25, 2009 at 2:29 PM, Sebastian Moors wrote:
> Orcan Ogetbil wrote:
>> * A "GenericName" to the .desktop file would be beautiful. Something
>> in the lines of "Drum Machine" or "Drum Programmer". Also the
>> categories X-Drumming  X-MIDI  X-Jack etc. can be added.
>>
>
>> * I am not very familiar with scons. I had to hack the Sconstruct file
>> to pass the optflags that I wanted. It would be nice if I could pass
>> the optflags to the scons command, e.g.
>> scons oss=0 portaudio=1 optflags="-another -brick -in-the -Wall"
>> If no optflags are passed, then scons should use the default ones.
>>
>>
> Ok, i'll fix both points.
>
Thanks again for the optflags flag. It makes life easier.
I'd like to make a small contribution to hydrogen. I patched the
.desktop file to meet the current freedesktop standards (version 1.0)
http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-1.0.html
The changes I made are:

To comply with current freedesktop standards:

* The key "Version" is changed to "1.0"
* The key "Encoding" is deprecated. Removed.
* The value "Application" in the key "Categories" is deprecated. Removed.
* The value "Sound" in the key "Categories" is unregistered. Values
extending the format should start with "X-". Changed to "X-Sound"
* The value of key "MimeType" doesn't end with a semicolon. Trailing
semicolons are required for string list keys. Added.
* The key "FilePattern" is deprecated. Removed.

Cosmetic changes:

! The absolute path and the extension in the key "Icon" are not
required. Removed. Note that, after this change, the files
hydrogen.desktop and hydrogen.desktop.in become identical

Additions:

+ Translations for the key "GenericName"
+ Turkish translations


This patch is against svn co 738. Feel free to apply it as a whole or
apply any parts from it that you would like.

Cheers,
Orcan
diff -rupN hydrogen.old/hydrogen.desktop hydrogen/hydrogen.desktop
--- hydrogen.old/hydrogen.desktop	2009-01-26 15:49:24.000000000 -0500
+++ hydrogen/hydrogen.desktop	2009-01-27 00:38:26.000000000 -0500
@@ -2,24 +2,27 @@
 Name=Hydrogen Drum Machine
 Name[de]=Hydrogen Drumsequencer
 Name[ru]=Драм-машина Hydrogen
+Name[tr]=Hydrogen Davul Makinası
 Comment=Create drum sequences
 Comment[de]=Schlagzeugsequenzen erstellen
 Comment[ru]=Создание партий ударных инструментов
+Comment[tr]=Davul partisyonu yaz
 
 GenericName=Drum Machine
+GenericName[de]=Drumsequencer
+GenericName[ru]=Драм-машина
+GenericName[tr]=Davul Makinası
 
-Encoding=UTF-8
-Version=0.9.4
+Version=1.0
 
 Type=Application
-Categories=Application;AudioVideo;Sound;Audio;Qt;
+Categories=AudioVideo;X-Sound;Audio;Qt;
 
-MimeType=text/xml
+MimeType=text/xml;
 
-FilePattern=hydrogen
 Exec=hydrogen %F
 TryExec=hydrogen
 Terminal=false
 StartupNotify=true
 
-Icon=/usr/share/pixmaps/h2-icon.svg
+Icon=h2-icon
diff -rupN hydrogen.old/hydrogen.desktop.in hydrogen/hydrogen.desktop.in
--- hydrogen.old/hydrogen.desktop.in	2009-01-26 15:49:24.000000000 -0500
+++ hydrogen/hydrogen.desktop.in	2009-01-27 00:38:35.000000000 -0500
@@ -2,22 +2,27 @@
 Name=Hydrogen Drum Machine
 Name[de]=Hydrogen Drumsequencer
 Name[ru]=Драм-машина Hydrogen
+Name[tr]=Hydrogen Davul Makinası
 Comment=Create drum sequences
 Comment[de]=Schlagzeugsequenzen erstellen
 Comment[ru]=Создание партий ударных инструментов
+Comment[tr]=Davul partisyonu yaz
 
-Encoding=UTF-8
-Version=0.9.4
+GenericName=Drum Machine
+GenericName[de]=Drumsequencer
+GenericName[ru]=Драм-машина
+GenericName[tr]=Davul Makinası
+
+Version=1.0
 
 Type=Application
-Categories=Application;AudioVideo;Sound;Audio;Qt;
+Categories=AudioVideo;X-Sound;Audio;Qt;
 
-MimeType=text/xml
+MimeType=text/xml;
 
-FilePattern=hydrogen
 Exec=hydrogen %F
 TryExec=hydrogen
 Terminal=false
 StartupNotify=true
 
-ic...@ac_prefix@/share/pixmaps/h2-icon.svg
\ No newline at end of file
+Icon=h2-icon
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Hydrogen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hydrogen-devel

Reply via email to