Service Menu Editor
Dolphin Service Menus
Description:

KDE Service Menu Editor is a simple way of editing the right-click menus that you see when using Dolphin. It has simple but flexible way of selecting the "mime types" (type of file) that the menu should appear on. Then adding the menu is as simple as typing a name and the command to be run.

The reason I wrote this application is because I noticed a lot of menus had not been ported to KDE4, rather than port them, I thought "why not write an application so everyone can make these menus easily.". So I did.

The website has more information and download links.

http://www.sharpley.org.uk/page/software/servicemenu

It's got plenty more work left to do, but if I don't release it soon it'll end up lost at the bottom of my projects folder and I'll forget all about it :-)

Please comment on bugs.
Last changelog:

6 years ago

Version 0.2
* Installer
* Debian packages (see page for details)
* Completely redesigned interface
* Bug Fixes

phd21

1 year ago

Hi Everyone,

Nice program, except the install.

I had a heck of a time installing this. You would think there would be an easier method for editing or creating the right-click menus that you see when using Dolphin file manager.

I installed all the python stuff (suggested requirements), edited the install script as also suggested (if needed), no errors during install, it still did not work, could not find "ui" files. I ended up as one user did, copying the extracted "kservicemenueditor" folder to various folders, and it now works.

Here is exactly what I did: I renamed the folder to "Kservicemenueditor" made an exact copy called "servicemenueditor". I ran "kde4-config --path data" to find the folders on my system that this needs to go to, it spat out 3 different folders, separated by colons ":".

/home/phil/.kde/share/apps/:/usr/share/mintkde-default-settings/kde4-profile/default/share/apps/:/usr/share/kde4/apps/

I then copied the "servicemenueditor" and "Kservicemenueditor" folders to each of these folders, and it now works.

Then, I found this article:

"How to add new items in the context menu -> Create New"

https://forum.kde.org/viewtopic.php?f=224&t=111760&p=267749&hilit=service+menu+editor#p267749

Hope this helps some of you ...

Report

mxttie

2 years ago

didn't know this tool until today!
for people having trouble with install: first, you need python and pyqt. Then I only had to install python-Distutils2 and python-distutils-extra package on opensuse. then run "sudo ./setup.py install"

Report

itsjustarumour2

5 years ago

Not working on Ubuntu 12.04 KDE 4.8.1 (32-bit) - can install from PPA, but complains:

Traceback (most recent call last):
File "/usr/bin/servicemenueditor", line 24, in <module>
from PyQt4 import QtCore, QtGui,uic
ImportError: No module named PyQt4

Have tried installing all the PyQt4 bits but still no dice. Also tried installing manually as per warrob's post, but first it complains of a missing /home/(username)/.kde/share/applnk/ folder, and when I create it manually, I then get the "No module named PyQt4" error again.

Report

itsjustarumour2

5 years ago

Not working on Ubuntu 12.04 KDE 4.8.1 (32-bit) - can install from PPA, but complains:

Traceback (most recent call last):
File "/usr/bin/servicemenueditor", line 24, in <module>
from PyQt4 import QtCore, QtGui,uic
ImportError: No module named PyQt4

Have tried installing all the PyQt4 bits but still no dice. Also tried installing manually as per warrob's post, but first it complains of a missing /home/(username)/.kde/share/applnk/ folder, and when I create it manually, I then get the "No module named PyQt4" error again.

Report

warrob

5 years ago

I managed to install it. I cannot understand the meaning of the setup.py: I didn't use it. To install just follow these steps:

1) unpackage the kservicemenu source and cd into its dir
2) mkdir ~/.kde/share/apps/servicemenueditor
3) cp *.ui ~/.kde/share/apps/servicemenueditor/
4) cp servicemenueditor.desktop ~/.kde/share/applnk/
5) cp servicemenueditor ~/bin

done. it works fine on debian sid x86_64

Report

warrob

5 years ago

$ ./setup.py
Traceback (most recent call last):
File "./setup.py", line 7, in <module>
from DistUtilsExtra.command import *
ImportError: No module named DistUtilsExtra.command

python-setuptools and python-kde4 are installed.

(debian sid x86_64)

Report

floopy1962

5 years ago

'File "setup.py", line 7, in <module>
from DistUtilsExtra.command import *
ImportError: No module named DistUtilsExtra.command'

somebody ?????????????????????? i just wanna make one service menu why i have to going through hell

Report

DavidEdmundson

5 years ago

Install python-setuptools

(I think)

Report

floopy1962

5 years ago

how to use it... same results trying to install the servise menu editor :(

Report

Fitzgerald

6 years ago

@kickass: If the suggestion by infectedsoundsystem did not solve your problem, I had to edit the KDE Service Menu Editor installer (setup.py), which is in the source code tarball (kservicemenueditor-0.2a.tar.gz), and change the line:

('share/kde4/apps/servicemenueditor', glob.glob("*.ui")),

to:

('share/apps/servicemenueditor', glob.glob("*.ui")),

Report

infectedsoundsystem

6 years ago

I've created an Arch PKGBUILD here: http://aur.archlinux.org/packages.php?ID=47750

Is there a repo anywhere with the latest source?

Cheers :)

@kickass - remove the "from DistUtilsExtra.command import *" line from setup.py (or install python-distutils-extra, but it isn't needed)

Report

kickass

6 years ago

Hello and thanks in advance,
When i run python setup.py i get

'File "setup.py", line 7, in <module>
from DistUtilsExtra.command import *
ImportError: No module named DistUtilsExtra.command'

and when I try to copy the files manually, I can't get past:

'QApplication::qAppName: Please instantiate the QApplication object first
could not find one or more of the required .ui files. Make sure these files are installed to a directory listed by `kde4-config --path data`'

although I copy the .ui files into the --path data directories.
Help.

Report

kickass

6 years ago

Hello and thanks in advance,
When i run python setup.py i get

'File "setup.py", line 7, in <module>
from DistUtilsExtra.command import *
ImportError: No module named DistUtilsExtra.command'

and when I try to copy the files manually, I can't get past:

'QApplication::qAppName: Please instantiate the QApplication object first
could not find one or more of the required .ui files. Make sure these files are installed to a directory listed by `kde4-config --path data`'

although I copy the .ui files into the --path data directories.
Help.

Report

dglent

6 years ago

Here is a Mandriva rpm
http://www.mandrivalinux.gr/rpm/2010.1/noarch/kservicemenueditor-0.2a-1mgr2010.2.noarch.rpm

Report

maidis

6 years ago

Hi,

Thanks for Service Menu Editor.

I'm going to make a package for Pardus [0]. Do you have a road map / release date for next release.

Some wishes and others:

* Translation support for Service Menu Editor GUI.

* Translation support for service menus:

X-KDE-Submenu=Pack
X-KDE-Submenu[tr]=Paketle

Name=Start to Packing
Name[tr]=Paketlemeye Başla

...

* Easy access for applications and dbus entries from action [1].

* http://www.sharpley.org.uk/page/software/servicemenu doesn't work and image doesn't shown at current page [2].

* Install script realy needs for DistUtilsExtra? I removed it with a patch for now [3].

* Could you add Turkish translation to desktop file [4].



[0] http://bugs.pardus.org.tr/show_bug.cgi?id=12225
[1] http://i.imgur.com/4Eim4.png
[2] http://www.sharpley.org.uk/node/3
[3] http://svn.pardus.org.tr/pardus/playground/maidis/kservicemenueditor/files/setup.py.diff
[4] http://svn.pardus.org.tr/pardus/playground/maidis/kservicemenueditor/files/servicemenueditor.desktop.diff

Report

wolfshift

6 years ago

Is this still available to download anywhere? The download links are broken.

Report

DavidEdmundson

6 years ago

My fault, try now.

Report

wolfshift

6 years ago

It works, thanks!

Report

DanielEKFA

6 years ago

I just recently had a go at Gnome and was so pleased to find that it provides a very easy-to-use context menu editor, not unlike this one.

Thank you so much for doing this one, even if it has a bug or two (like selected icon being reset when you edit an entry).

I hope you'll keep working on this one. AFAICT, there's very little to do before it should be a standard item in the larger settings app, as suggested previously in this thread.

It would be nice with some more parameters, to add to %u and %U. At least, I hope that's not all there are. The Gnome equivalent has a lot more options, like relative paths, workdir, etc.

Thanks again! Very nice :)

Report

DavidEdmundson

6 years ago

The Exec line supports the following:
http://standards.freedesktop.org/desktop-entry-spec/latest/ar01s06.html

This may well be different from the Gnome equivalent, as the two file managers get their service menus from different files which store data in different ways.

I haven't worked on this program in a while, I'll try and at least find time to fix the icon issue.

Report

markwege

7 years ago

Are there any Kubuntu packages? Or even better a repository?

Report

DavidEdmundson

7 years ago

Not yet. I stopped doing any work on this because I didn't get that much interest back.

As you've asked I'll go investigate trying to make one :-). I don't (currently) know how to package a python app, but I'll take a look for you.

Report

DavidEdmundson

7 years ago

Slightly late.. but:

Debian packages are available for the new version of kservicemenueditor (0.2)

I've written PPA details on my site.

http://www.sharpley.org.uk/page/software/servicemenu

Please report back (even if just to say it works)

I'll update this page shortly.

Report

markwege

7 years ago

Hi, thanks for the package. Unfortuneately I have run into following problem:

"Traceback (most recent call last):
File "/usr/bin/servicemenueditor", line 25, in <module>
from PyKDE4.kdecore import ki18n, KAboutData, KCmdLineArgs , KConfig, KConfigGroup, KDesktopFile, KMimeType, KServiceType, KGlobal
RuntimeError: the sip module implements API v7.0 but the PyKDE4.kdecore module requires API v6.0"
May be that is related to the fact that I am running KDE 4.4 RC2 (Karmic) which is still missing actual binding (which are still installed from KDE 4.3.5.

Something else: I think the best future for this would be as KCM-module in systemsettings. This is where it would really belong.

Report

DavidEdmundson

7 years ago

Bindings/Library conflict sounds likely. Try another pykde4 app (like usb-creator-kde, or jockey-kde) and see what happens then.

As for KCM-ing. I'm not sure, it's not really a setting, and as such is nice to be stand-alone. I'm not disagreeing either, I'll get the opinion of a few more people and go with the majority.

Traditionally python in KCM was tricky, not sure if that's still the case.

Report

6 years ago

Version 0.2
* Installer
* Debian packages (see page for details)
* Completely redesigned interface
* Bug Fixes

File (click to download) Version Description Filetype Packagetype License Downloads Date Filesize OCS-Install
Score 78%
78.00 Likes
22 Dislikes
Details
version
0.2
updated Dec 29 2010
added Jul 12 2008
downloads
page views 1831