Add missing creation of .desktop file for disk tool.
authorCarl Hetherington <cth@carlh.net>
Sun, 26 Apr 2020 18:29:28 +0000 (20:29 +0200)
committerCarl Hetherington <cth@carlh.net>
Sun, 26 Apr 2020 18:29:28 +0000 (20:29 +0200)
platform/linux/dcpomatic_disk.desktop.in [new file with mode: 0644]
platform/linux/wscript

diff --git a/platform/linux/dcpomatic_disk.desktop.in b/platform/linux/dcpomatic_disk.desktop.in
new file mode 100644 (file)
index 0000000..e6a6dc9
--- /dev/null
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Encoding=UTF-8
+Version=1.0
+Type=Application
+Terminal=false
+Exec=@INSTALL_PREFIX@/bin/dcpomatic2_disk
+Name=DCP-o-matic 2 Disk Writer
+Icon=dcpomatic2_disk
+Comment=DCP writer
+Categories=AudioVideo;Video
index d21d8b1..0fc593f 100644 (file)
@@ -29,6 +29,14 @@ def build(bld):
         obj.VERSION = bld.env.VERSION
         desktops.append(obj.target)
 
+        if bld.env.ENABLE_DISK:
+            obj = bld(features='subst')
+            obj.source = 'dcpomatic_disk.desktop.in'
+            obj.target = 'dcpomatic2_disk.desktop'
+            obj.INSTALL_PREFIX = bld.env.INSTALL_PREFIX
+            obj.VERSION = bld.env.VERSION
+            desktops.append(obj.target)
+
     obj = bld(features='subst')
     obj.source = 'dcpomatic_player.desktop.in'
     obj.target = 'dcpomatic2_player.desktop'