Add supporting desktop files for QRenderDoc and thumbnail handler etc

This commit is contained in:
baldurk
2016-11-01 18:38:55 +01:00
parent 5286f950ff
commit 7e7b3d3f80
6 changed files with 48 additions and 0 deletions
+7
View File
@@ -10,3 +10,10 @@ add_custom_command(OUTPUT QRenderDoc
add_custom_target(build-qrenderdoc ALL DEPENDS QRenderDoc)
install (PROGRAMS ${output_dir}/qrenderdoc DESTINATION bin)
# Install supporting files for file associations etc
install (PROGRAMS share/application-x-renderdoc-capture.svg DESTINATION share/icons/hicolor/scalable/mimetypes/)
install (PROGRAMS share/magic DESTINATION share/doc/renderdoc)
install (PROGRAMS share/renderdoc.desktop DESTINATION share/applications)
install (PROGRAMS share/renderdoc.thumbnailer DESTINATION share/thumbnailers)
install (PROGRAMS share/renderdoc-capture.xml DESTINATION share/mime/packages)
@@ -0,0 +1,7 @@
<svg width="1024" height="1024" xmlns="http://www.w3.org/2000/svg">
<g>
<path fill="#3bb779" fill-rule="nonzero" d="m1024,1024l-1024,0l0,-1024l1024,0l0,1024z"/>
<path fill="#ffffff" fill-rule="nonzero" d="m510.802494,347.397079c62.886453,0 113.870241,50.983792 113.870241,113.870239c0,62.901301 -50.983788,113.885093 -113.870241,113.885093c-62.886453,0 -113.870251,-50.983792 -113.870251,-113.885103c0,-62.886437 50.983798,-113.870229 113.870251,-113.870229m143.560016,251.798396c34.400318,-35.782263 55.575457,-84.358776 55.575457,-137.928167c0,-109.976981 -89.158481,-199.135453 -199.135473,-199.135453c-109.976992,0 -199.135483,89.158472 -199.135483,199.135453c0,53.911165 20.253837,101.581229 55.055365,137.437793c-104.478884,26.50979 -188.986269,82.055524 -237.963996,151.643719c104.419448,-51.637622 238.082879,-82.649917 383.797566,-82.649917c145.699823,0 279.378118,31.012295 383.782702,82.649917c-49.408665,-70.212306 -136.219312,-124.911027 -241.976137,-151.153344"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 997 B

+7
View File
@@ -0,0 +1,7 @@
# Magic local data for file(1) command. Format is described in magic(5).
# This can be added to ~/.magic or /etc/magic or anywhere else magic
# data is sourced from.
# RenderDoc
0 string RDOC RenderDoc Capture File
!:mime application/x-renderdoc-capture
+10
View File
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="application/x-renderdoc-capture">
<comment>RenderDoc capture file</comment>
<magic priority="50">
<match value="RDOC" type="string" offset="0:4"/>
</magic>
<glob pattern="*.rdc"/>
</mime-type>
</mime-info>
+13
View File
@@ -0,0 +1,13 @@
[Desktop Entry]
Version=1.0
Name=RenderDoc
Comment=A stand-alone graphics API debugger
GenericName=Graphics Debugger
Exec=qrenderdoc %f
Icon=application-x-renderdoc-capture
Terminal=false
Type=Application
X-MultipleArgs=false
Categories=Development;
StartupNotify=true
MimeType=application/x-renderdoc-capture;
+4
View File
@@ -0,0 +1,4 @@
[Thumbnailer Entry]
TryExec=/usr/bin/renderdoccmd
Exec=/usr/bin/renderdoccmd thumb -f png -s %s -o %o %i
MimeType=application/x-renderdoc-capture;