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, apol Reviewed By: #kde_connect, apol Subscribers: apol, kdeconnect Tags: #kde_connect Differential Revision: https://phabricator.kde.org/D16603
This commit is contained in:
parent
193481ce46
commit
e5bbc37546
4 changed files with 13 additions and 3 deletions
|
@ -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
5
data/CMakeLists.txt
Normal 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
7
data/kdeconnect.contract
Normal 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
|
Loading…
Reference in a new issue