[PATCH] Unify and fix desktop files



Attached patch unifies and fixes *.desktop files:

- Unified order of entries in all files: Type, Name, Exec, ...
- Remove optional TryExec. It's not needed if equals to Exec.
- Add required Type entry to KDE.
- Remove invalid ConfigExec from GNOME.
- Add optional Provides and Autostart-Phase to GNOME.

See specs:

http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html

(If my mailer corrupts long lines:
http://b.bbbs.net/sawfish/desktop.patch )


diff -urN sawfish-1.8.0.orig/sawfish.desktop sawfish-1.8.0/sawfish.desktop
--- sawfish-1.8.0.orig/sawfish.desktop	2011-03-13 10:49:21.000000000 +0200
+++ sawfish-1.8.0/sawfish.desktop	2011-04-15 15:36:37.424223768 +0300
@@ -1,14 +1,10 @@
 [Desktop Entry]
+Type=Application
 Name=Sawfish
 Name[el]=Πριονόψαρο (Sawfish)
-
-Type=Application
 Exec=sawfish
-TryExec=sawfish
-
 Terminal=false
 NoDisplay=true
-
 X-GNOME-WMName=Sawfish
 X-GNOME-Autostart-Phase=WindowManager
 X-GNOME-Provides=windowmanager
diff -urN sawfish-1.8.0.orig/sawfish-ksm.desktop sawfish-1.8.0/sawfish-ksm.desktop
--- sawfish-1.8.0.orig/sawfish-ksm.desktop	2011-03-13 10:49:21.000000000 +0200
+++ sawfish-1.8.0/sawfish-ksm.desktop	2011-04-15 15:36:35.097209902 +0300
@@ -1,6 +1,7 @@
 [Desktop Entry]
+Type=Application
 Name=Sawfish
+Name[el]=Πριονόψαρο (Sawfish)
 Exec=sawfish
-TryExec=sawfish
 X-KDE-WindowManagerConfigure=sawfish-config
 X-KDE-WindowManagerRestartArgument=--replace
diff -urN sawfish-1.8.0.orig/sawfish-session.desktop sawfish-1.8.0/sawfish-session.desktop
--- sawfish-1.8.0.orig/sawfish-session.desktop	2011-03-13 10:49:21.000000000 +0200
+++ sawfish-1.8.0/sawfish-session.desktop	2011-04-15 15:21:27.096784746 +0300
@@ -1,7 +1,5 @@
 [Desktop Entry]
+Type=Application
 Name=Sawfish
 Name[el]=Πριονόψαρο (Sawfish)
-
-Type=Application
 Exec=sawfish
-TryExec=sawfish
diff -urN sawfish-1.8.0.orig/sawfish-wm.desktop sawfish-1.8.0/sawfish-wm.desktop
--- sawfish-1.8.0.orig/sawfish-wm.desktop	2011-03-13 10:49:21.000000000 +0200
+++ sawfish-1.8.0/sawfish-wm.desktop	2011-04-15 15:36:31.170187121 +0300
@@ -1,15 +1,11 @@
 [Desktop Entry]
+Type=Application
 Name=Sawfish
 Name[el]=Πριονόψαρο (Sawfish)
-
 Exec=sawfish
-TryExec=sawfish
-
 Terminal=false
 NoDisplay=true
-
-ConfigExec=sawfish-config
-ConfigTryExec=sawfish-config
-
 X-GNOME-WMName=Sawfish
+X-GNOME-Autostart-Phase=WindowManager
+X-GNOME-Provides=windowmanager
 X-GNOME-Autostart-Notify=true


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]