mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-12 12:54:29 +00:00
make services GHNS work with store.kde.org
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
This commit is contained in:
parent
68bb0ec22a
commit
db54c9b6ce
|
@ -1,5 +1,6 @@
|
|||
[KNewStuff2]
|
||||
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
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
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"
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
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"
|
||||
|
|
Loading…
Reference in a new issue