Summary:
point the knsrc providers file to the new kde store,
and port the servicemenuinstallation/servicemenudeinstallation
scripts to kf5 (they still were based on kde4-config)
BUG:376922
Test Plan:
downloaded some service menus (send to telegram, convert svg)
by the knewstuff ui available in the services page of config dialog
they get installed in the proper folder and work, uninstall works
Reviewers: #dolphin, emmanuelp
Reviewed By: #dolphin, emmanuelp
Subscribers: elvisangelaccio
Differential Revision: https://phabricator.kde.org/D5035
-ProvidersUrl=http://download.kde.org/khotnewstuff/servicemenu-providers.xml
+ProvidersUrl=http://download.kde.org/ocs/providers.xml
+Categories=Dolphin Service Menus
ChecksumPolicy=ifpossible
SignaturePolicy=ifpossible
TargetDir=servicemenu-download
ChecksumPolicy=ifpossible
SignaturePolicy=ifpossible
TargetDir=servicemenu-download
require 'fileutils'
archive = ARGV[0]
if archive[(archive.length - 8)..(archive.length)] == ".desktop"
require 'fileutils'
archive = ARGV[0]
if archive[(archive.length - 8)..(archive.length)] == ".desktop"
- FileUtils.rm(`kde4-config --localprefix`.strip! + "share/kde4/services/ServiceMenus/" + File.basename(archive))
+ FileUtils.rm(`qtpaths --writable-path GenericDataLocation`.strip! + "/kservices5/ServiceMenus/" + File.basename(archive))
exit(0)
end
dir = archive + "-dir"
exit(0)
end
dir = archive + "-dir"
require 'pathname'
require 'fileutils'
archive = ARGV[0]
require 'pathname'
require 'fileutils'
archive = ARGV[0]
-$servicedir = `kde4-config --localprefix`.strip! + "share/kde4/services/ServiceMenus/"
+$servicedir = `qtpaths --writable-path GenericDataLocation`.strip! + "/kservices5/ServiceMenus/"
FileUtils.mkdir_p($servicedir) if !File.exist?($servicedir)
if archive[(archive.length - 8)..(archive.length - 1)] == ".desktop"
puts "Single-File Service-Menu"
FileUtils.mkdir_p($servicedir) if !File.exist?($servicedir)
if archive[(archive.length - 8)..(archive.length - 1)] == ".desktop"
puts "Single-File Service-Menu"