From d0ee89e2fe66c99c4958c887255326aa60b8a76e Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Wed, 22 Apr 2015 13:34:42 +0200 Subject: [PATCH] Install a .desktop file to make citra-qt launchable from DE menus. --- CMakeLists.txt | 13 ++++++++ dist/citra.desktop | 14 ++++++++ dist/citra.svg | 80 ++++++++++++++++++++++++++++++++++++++++++++++ dist/citra.xml | 59 ++++++++++++++++++++++++++++++++++ 4 files changed, 166 insertions(+) create mode 100644 dist/citra.desktop create mode 100644 dist/citra.svg create mode 100644 dist/citra.xml diff --git a/CMakeLists.txt b/CMakeLists.txt index b0fe285db6..dc525aa3da 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -193,3 +193,16 @@ if(ENABLE_QT) add_subdirectory(externals/qhexedit) endif() add_subdirectory(src) + +# Install freedesktop.org metadata files, following those specifications: +# http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html +# http://standards.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html +# http://standards.freedesktop.org/shared-mime-info-spec/shared-mime-info-spec-latest.html +if(${CMAKE_SYSTEM_NAME} MATCHES "Linux|FreeBSD|OpenBSD|NetBSD") + install(FILES "${CMAKE_SOURCE_DIR}/dist/citra.desktop" + DESTINATION "${CMAKE_INSTALL_PREFIX}/share/applications") + install(FILES "${CMAKE_SOURCE_DIR}/dist/citra.svg" + DESTINATION "${CMAKE_INSTALL_PREFIX}/share/pixmaps") + install(FILES "${CMAKE_SOURCE_DIR}/dist/citra.xml" + DESTINATION "${CMAKE_INSTALL_PREFIX}/share/mime/packages") +endif() diff --git a/dist/citra.desktop b/dist/citra.desktop new file mode 100644 index 0000000000..1300d62c2d --- /dev/null +++ b/dist/citra.desktop @@ -0,0 +1,14 @@ +[Desktop Entry] +Version=1.0 +Type=Application +Name=Citra +GenericName=3DS Emulator +GenericName[fr]=Émulateur 3DS +Comment=Nintendo 3DS video game console emulator +Comment[fr]=Émulateur de console de jeu Nintendo 3DS +Icon=citra +TryExec=citra-qt +Exec=citra-qt %f +Categories=Game;Emulator;Qt; +MimeType=application/x-ctr-3dsx;application/x-ctr-cci;application/x-ctr-cia;application/x-ctr-cxi; +Keywords=3DS;Nintendo; diff --git a/dist/citra.svg b/dist/citra.svg new file mode 100644 index 0000000000..7b299cd89a --- /dev/null +++ b/dist/citra.svg @@ -0,0 +1,80 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dist/citra.xml b/dist/citra.xml new file mode 100644 index 0000000000..bcb9acd870 --- /dev/null +++ b/dist/citra.xml @@ -0,0 +1,59 @@ + + + + 3DS homebrew executable + Exécutable 3DS homebrew + 3DSX + + + + + + + 3DS cartridge image + Image de cartouche 3DS + CCI + CTR Cart Image + + + + + + + + 3DS executable + Exécutable 3DS + CXI + CTR eXecutable Image + + + + + + + 3DS importable archive + Archive importable 3DS + CIA + CTR Importable Archive + + + + + + 3DS icon + Icône 3DS + SMDH + System Menu Data Header + + + + + + 3DS banner + Bannière 3DS + CBMD + CTR Banner Model Data + + + +