Add contract file

Summary:
This allows sending files from ElementaryOS apps such as their file manager.

Create a data dir for similar files

Test Plan: run contractor; run pantheon-files, right-click file -> Send via KDE Connect

Reviewers: #kde_connect

Subscribers: kdeconnect

Tags: #kde_connect

Differential Revision: https://phabricator.kde.org/D16603
This commit is contained in:
Nicolas Fella 2018-11-02 02:58:02 +01:00
parent eaea0ab667
commit 9a56d7531b
4 changed files with 13 additions and 3 deletions

View file

@ -81,6 +81,7 @@ endif()
add_subdirectory(icon) add_subdirectory(icon)
add_subdirectory(interfaces) add_subdirectory(interfaces)
add_subdirectory(data)
option(EXPERIMENTALAPP_ENABLED OFF) option(EXPERIMENTALAPP_ENABLED OFF)
if(EXPERIMENTALAPP_ENABLED) if(EXPERIMENTALAPP_ENABLED)
@ -119,7 +120,4 @@ if(BUILD_TESTING AND NOT SAILFISHOS)
add_subdirectory(tests) add_subdirectory(tests)
endif() endif()
if(NOT SAILFISHOS)
install(FILES org.kde.kdeconnect.kcm.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
endif()
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES) feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)

5
data/CMakeLists.txt Normal file
View file

@ -0,0 +1,5 @@
install (FILES "kdeconnect.contract" DESTINATION ${CMAKE_INSTALL_PREFIX}/share/contractor/)
if(NOT SAILFISHOS)
install(FILES org.kde.kdeconnect.kcm.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
endif()

7
data/kdeconnect.contract Normal file
View file

@ -0,0 +1,7 @@
[Contractor Entry]
Name=Send via KDE Connect
Icon=kdeconnect
Description=Send files via KDE Connect
MimeType=!inode;
Exec=kdeconnect-handler %F
Gettext-Domain=kdeconnect