
Service Menu Editor
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
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.
10 years ago
Version 0.2
* Installer
* Debian packages (see page for details)
* Completely redesigned interface
* Bug Fixes
10 years ago
Version 0.2
* Installer
* Debian packages (see page for details)
* Completely redesigned interface
* Bug Fixes
Nano-Ocelot
2 years ago
Report
emplate430
2 years ago
Report
phd21
5 years ago
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
6 years ago
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
8 years ago
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
8 years ago
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
9 years ago
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
9 years ago
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
9 years ago
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
9 years ago
(I think)
Report
floopy1962
9 years ago
Report
Fitzgerald
9 years ago
('share/kde4/apps/servicemenueditor', glob.glob("*.ui")),
to:
('share/apps/servicemenueditor', glob.glob("*.ui")),
Report
infectedsoundsystem
9 years ago
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
9 years ago
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
9 years ago
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
10 years ago
http://www.mandrivalinux.gr/rpm/2010.1/noarch/kservicemenueditor-0.2a-1mgr2010.2.noarch.rpm
Report
maidis
10 years ago
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
10 years ago
Report
DavidEdmundson
10 years ago
Report
wolfshift
10 years ago
Report
DanielEKFA
10 years ago
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
10 years ago
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
11 years ago
Report
DavidEdmundson
10 years ago
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
10 years ago
"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