mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-22 04:55:48 +03:00
Placeholders: install mimetype on linux
This commit is contained in:
parent
7eeb99ba24
commit
d233e5f8d7
3 changed files with 18 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
|
@ -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
7
src/gui/owncloud.xml
Normal 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>
|
Loading…
Reference in a new issue