Try to add desktop link for GUI encode server (#151).
authorCarl Hetherington <cth@carlh.net>
Thu, 30 May 2013 12:06:38 +0000 (13:06 +0100)
committerCarl Hetherington <cth@carlh.net>
Thu, 30 May 2013 12:06:38 +0000 (13:06 +0100)
servomatic.desktop.in [new file with mode: 0644]
wscript

diff --git a/servomatic.desktop.in b/servomatic.desktop.in
new file mode 100644 (file)
index 0000000..572b4c6
--- /dev/null
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Encoding=UTF-8
+Version=1.0
+Type=Application
+Terminal=false
+Exec=@PREFIX@/bin/servomatic_gui
+Name=DVD-o-matic Encode Server
+Icon=dvdomatic
+Comment=DCP generator
+Categories=AudioVideo;Video
diff --git a/wscript b/wscript
index 86ed07b1b5a3fb9151ffa7970e60cf4825e6df33..9a7cedab93b34070c050c0655ce5fe1c46ec0a8b 100644 (file)
--- a/wscript
+++ b/wscript
@@ -206,7 +206,12 @@ def build(bld):
     obj.target = 'dvdomatic_batch.desktop'
     obj.dict = d
 
-    bld.install_files('${PREFIX}/share/applications', ['dvdomatic.desktop', 'dvdomatic_batch.desktop'])
+    obj = bld(features = 'subst')
+    obj.source = 'servomatic.desktop.in'
+    obj.target = 'servomatic.desktop'
+    obj.dict = d
+
+    bld.install_files('${PREFIX}/share/applications', ['dvdomatic.desktop', 'dvdomatic_batch.desktop', 'servomatic.desktop'])
     for r in ['22x22', '32x32', '48x48', '64x64', '128x128']:
         bld.install_files('${PREFIX}/share/icons/hicolor/%s/apps' % r, 'icons/%s/dvdomatic.png' % r)