Placeholders: install mimetype on linux

This commit is contained in:
Olivier Goffart 2018-01-15 19:43:33 +01:00 committed by Kevin Ottens
parent 7eeb99ba24
commit d233e5f8d7
No known key found for this signature in database
GPG Key ID: 074BBBCB8DECC9E2
3 changed files with 18 additions and 0 deletions

View File

@ -8,6 +8,7 @@ GenericName=Folder Sync
Icon=@APPLICATION_ICON_NAME@
Keywords=@APPLICATION_NAME@;syncing;file;sharing;
X-GNOME-Autostart-Delay=3
MimeType=application/x-owncloud
# Translations

View File

@ -430,5 +430,15 @@ if(NOT BUILD_OWNCLOUD_OSX_BUNDLE AND NOT WIN32)
configure_file(${CMAKE_SOURCE_DIR}/mirall.desktop.in
${CMAKE_CURRENT_BINARY_DIR}/${LINUX_APPLICATION_ID}.desktop)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${LINUX_APPLICATION_ID}.desktop DESTINATION ${DATADIR}/applications )
#FIXME! branding
install(FILES owncloud.xml DESTINATION ${DATADIR}/mime/packages )
find_package(ECM 1.2.0 CONFIG)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR} "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
find_package(SharedMimeInfo)
if(SharedMimeInfo_FOUND)
update_xdg_mimetypes( ${DATADIR}/mime/packages )
endif(SharedMimeInfo_FOUND)
endif()

7
src/gui/owncloud.xml Normal file
View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="application/x-owncloud">
<comment>ownCloud placeholder style</comment>
<glob pattern="*.owncloud"/>
</mime-type>
</mime-info>