Bug 371907 - Dolphin, KDE Framework, service menu installation and deinstallation ruby scripts are using KDE4 paths
Summary: Dolphin, KDE Framework, service menu installation and deinstallation ruby scr...
Status: RESOLVED DUPLICATE of bug 376922
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 16.08.2
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-31 20:11 UTC by Rog131
Modified: 2017-04-20 09:09 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rog131 2016-10-31 20:11:42 UTC
servicemenuinstallation ruby script has line:

$servicedir = `kde4-config --localprefix`.strip! + "share/kde4/services/ServiceMenus/"

servicemenudeinstallation ruby script has line:

FileUtils.rm(`kde4-config --localprefix`.strip! + "share/kde4/services/ServiceMenus/" + File.basename(archive))

Test - execute:

$ servicemenuinstallation test.desktop

Result:

/usr/bin/servicemenuinstallation:43: warning: key "application/x-gtar" is duplicated and overwritten on line 50
Single-File Service-Menu
test.desktop
/home/USER/.kde4/share/kde4/services/ServiceMenus/

=> The test.desktop is installed to the wrong place and the Dolphin 16.08.2 can't see it.

With the KDE Frameworks 5 the service paths are: 'kf5-config --path services' so the lines could be:

$servicedir = `kf5-config --path services`.split(':').first + "ServiceMenus/"

FileUtils.rm(`kf5-config --path services`.split(':').first + "ServiceMenus/" + File.basename(archive))

Making the changes - Testing - executing:

$ servicemenuinstallation test.desktop
/usr/bin/servicemenuinstallation:43: warning: key "application/x-gtar" is duplicated and overwritten on line 50
Single-File Service-Menu
test.desktop
/home/USER/.local/share/kservices5/ServiceMenus/

and the 

$ servicemenudeinstallation test.desktop

Will remove the test.desktop from /home/USER/.local/share/kservices5/ServiceMenus/
Comment 1 vinnywright 2016-11-01 21:05:53 UTC
just adding that this is true on Kubuntu-16.04 and Neon-dev/stable as well 

VINNY
Comment 3 Elvis Angelaccio 2017-04-20 09:09:50 UTC

*** This bug has been marked as a duplicate of bug 376922 ***