Fix missing start icon for the player in Linux.
authorCarl Hetherington <cth@carlh.net>
Fri, 6 Apr 2018 22:14:21 +0000 (23:14 +0100)
committerCarl Hetherington <cth@carlh.net>
Fri, 6 Apr 2018 22:14:21 +0000 (23:14 +0100)
ChangeLog
platform/linux/dcpomatic_player.desktop.in [new file with mode: 0644]
platform/linux/wscript

index bd54422..d30e12b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2018-04-06  Carl Hetherington  <cth@carlh.net>
+
+       * Fix missing start icon for the player in Linux.
+
 2018-04-05  Carl Hetherington  <cth@carlh.net>
 
        * Updated zh_CN translation from 刘汉源.
diff --git a/platform/linux/dcpomatic_player.desktop.in b/platform/linux/dcpomatic_player.desktop.in
new file mode 100644 (file)
index 0000000..2548e8c
--- /dev/null
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Encoding=UTF-8
+Version=1.0
+Type=Application
+Terminal=false
+Exec=@INSTALL_PREFIX@/bin/dcpomatic2_player
+Name=DCP-o-matic 2 Player
+Icon=dcpomatic2_player
+Comment=DCP player
+Categories=AudioVideo;Video
index 6e96f3f..01238fc 100644 (file)
@@ -23,4 +23,10 @@ def build(bld):
     obj.INSTALL_PREFIX = bld.env.INSTALL_PREFIX
     obj.VERSION = bld.env.VERSION
 
-    bld.install_files('${PREFIX}/share/applications', ['dcpomatic2.desktop', 'dcpomatic2_batch.desktop', 'dcpomatic2_server.desktop', 'dcpomatic2_kdm.desktop'])
+    obj = bld(features='subst')
+    obj.source = 'dcpomatic_player.desktop.in'
+    obj.target = 'dcpomatic2_player.desktop'
+    obj.INSTALL_PREFIX = bld.env.INSTALL_PREFIX
+    obj.VERSION = bld.env.VERSION
+
+    bld.install_files('${PREFIX}/share/applications', ['dcpomatic2.desktop', 'dcpomatic2_batch.desktop', 'dcpomatic2_server.desktop', 'dcpomatic2_kdm.desktop', 'dcpomatic2_player.desktop'])