This forum has been archived. All content is frozen. Please use KDE Discuss instead.

How to delete items from the service menu?

Tags: None
(comma "," separated)
userthomas
Registered Member
Posts
8
Karma
0
Hello,

I'm new to KDE and Dolphin and I'm so grateful for it all! Dolphin is the best file-manager I ever came across. :)

Now, I found out already how to add items to the service menu (right click menu) via adding new .desktop files. But I searched the web for hours without success to find a way to remove existing items like "Open in new window" (if this is the right English translation for that option). Does anyone know help?

Best greetings,
Thomas
User avatar
google01103
Manager
Posts
6668
Karma
25
many can be disabled using settings -> configure Dolphin -> services

but some are probably hard coded such as "Open in new window"


OpenSuse Leap 42.1 x64, Plasma 5.x

userthomas
Registered Member
Posts
8
Karma
0
Thanks for the fast answer!

But I have looked there already. And "Open in new window" is not possible to remove this way. :(

I would think, there must be a .desktop file for those entries too, but I can't find them.
userthomas
Registered Member
Posts
8
Karma
0
And even if it is hardcoded. Maybe I'm naiv, but I have the impression, that if you know the right place, then you just comment out the important line, and thats it.

Does anyone know the right place?
User avatar
google01103
Manager
Posts
6668
Karma
25
If it's hardcoded you would need to adjust the source code and re-compile


OpenSuse Leap 42.1 x64, Plasma 5.x

userthomas
Registered Member
Posts
8
Karma
0
Ok, so I probably was to naiv.
Too bad.
Especially the entry "Open in new Tab" is completely useless for me, because a middle-click does exactly the same and does it much faster.
Well ..., but thank you anyway!
userthomas
Registered Member
Posts
8
Karma
0
I think I found it.
Please have a look at line 240 here: http://code.metager.de/source/xref/kde/kde-baseapps/dolphin/src/dolphincontextmenu.cpp

This is the place. Is this dolphincontextmenu.cpp source code, which I would have to compile and stuff, as you wrote?
User avatar
google01103
Manager
Posts
6668
Karma
25
appears so,

this may help re-compiling Dolphin especially if you run Kubuntu or a Debian variant http://www.kubuntuforums.net/showthread ... untu-12-04 it's for a diff patch but it shows the steps and src's needed


OpenSuse Leap 42.1 x64, Plasma 5.x

userthomas
Registered Member
Posts
8
Karma
0
Thank you!

But that looks all frightening to me! lol

I guess I have to wait for others to come to the same point and also express their wishes for a less cluttered service menu.

Thanks again!


Bookmarks



Who is online

Registered users: Bing [Bot], gfielding, Google [Bot], markhm, sethaaaa, Sogou [Bot], Yahoo [Bot]