Verified Commit bb915aee authored by Alexander Lohnau's avatar Alexander Lohnau 💬
Browse files

Define mimetypes in desktop file instead of protocol files

The .protocol files are about to be deprecated. Also we can just use the
XDG mechanism of defining the scheme handlers instead of the KDE
specific protocol files.

See also
frameworks/kio!362 (comment 247026).

Task: https://phabricator.kde.org/T14518
parent 8d3e6a84
......@@ -158,4 +158,5 @@ Comment[zh_CN]=通过 RDP 或 VNC 连接到另一台计算机
Comment[zh_TW]=以 RDP 或 VNC 連線到其他電腦
X-DocPath=krdc/index.html
StartupWMClass=krdc
MimeType=x-scheme-handler/vnc;x-scheme-handler/rdp
Categories=Qt;KDE;Network;RemoteAccess;
......@@ -57,6 +57,5 @@ if(HAVE_XFREERDP)
install(FILES krdc_rdp_config.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR})
install(FILES rdp.protocol DESTINATION ${KDE_INSTALL_KSERVICES5DIR})
install(FILES smb2rdc.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}/ServiceMenus)
endif(HAVE_XFREERDP)
[Protocol]
exec=krdc '%u'
protocol=rdp
input=none
output=none
helper=true
listing=
reading=false
writing=false
makedir=false
deleting=false
Icon=krdc
......@@ -71,6 +71,4 @@ if(LIBVNCSERVER_FOUND)
install(TARGETS krdc_vncplugin DESTINATION ${KDE_INSTALL_PLUGINDIR}/krdc)
install(FILES krdc_vnc_config.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR})
install(FILES vnc.protocol DESTINATION ${KDE_INSTALL_KSERVICES5DIR})
endif(LIBVNCSERVER_FOUND)
[Protocol]
exec=krdc '%u'
protocol=vnc
input=none
output=none
helper=true
listing=
reading=false
writing=false
makedir=false
deleting=false
Icon=krdc
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment