chris z Posted August 28, 2004 Report Share Posted August 28, 2004 (edited) don't know if anybody would be interested in this, or if it's been mentioned before. (if it has, then please delete this post, oh Mod Gods :P ) here's a link to a Tutorial on how to add options to the drop down menu's in KDE when you right click on something. i followed the example they give & it worked like a charm. following the tutorial mentioned above, i wrote 2 service menu scripts that might be useful for the GUI addicted, lazy folk (like me). feel free to modify them as you wish. this one will add an "open as root" option under "actions" in the right click drop down menu. no need to go into konqueror superuser mode anymore if ya don't want to, with this......... [Desktop Entry] ServiceTypes=inode/directory,inode/directory-locked Actions=Openassu [Desktop Action Openassu] Name=Open as Root Icon=kfm Exec=kdesu "konqueror --profile filemanagement %U" and, this one will add a "run as root" option in the same place........... [Desktop Entry] ServiceTypes=application/x-executable,application/x-shellscript,application/x-python,application/x-perl Actions=runassu [Desktop Action runassu] Name=Run as Root Icon=kfm Exec=kdesu -c copy & paste those (seperately) to a text editor (kwrite, etc.) do "save as", name it whatever you like, but just make the file name end with .desktop. (IE: "save as", runasroot.desktop) then, save the file into /home/(username)/.kde/share/apps/konqueror/servicemenus. note, the /.kde directory is hidden by default, so you need to go to (in konqueror file manager) "view" in the top tool bar & put a check besides "show hidden files". enjoy.......... Chris Edited August 28, 2004 by chris z Quote Link to comment Share on other sites More sharing options...
daniewicz Posted September 4, 2004 Report Share Posted September 4, 2004 Noob here. I like your idea. I do not have a servicemenus directory in the location you mention, so I created one and inserted the 2 files. This didn't work. I had a brief look at the link you posted, and they mentioned using: /usr/share/apps/konqueror/servicemenus. I do have this directory, so I inserted the 2 files here. Still didn't work. Any ideas? Quote Link to comment Share on other sites More sharing options...
chris z Posted September 4, 2004 Author Report Share Posted September 4, 2004 (edited) did you name them with .desktop extension? if so, the other thing is, these options will only show up in the drop down menu when applicable. IE: if you right click on something that doesn't need root priveledges, you won't see the options. try opening konq in file manager mode as normal user. the root directory should be locked & unavailable to a normal user. if you right click on it, the menu option will be there if you followed the steps correctly to create the service menu scripts. please post back & let me know. Chris Edited September 5, 2004 by chris z Quote Link to comment Share on other sites More sharing options...
daniewicz Posted September 4, 2004 Report Share Posted September 4, 2004 Thanks for the reply. It appears to be working after all. I was confused and thought I could use your hack to right-click on a shortcut. I now realize I need to be right-clicking on a folder or file. Works great once I realized what was going on! Thanks Quote Link to comment Share on other sites More sharing options...
Gowator Posted October 26, 2004 Report Share Posted October 26, 2004 great tip, I have some i wanna try, especially open with stuff... its worth pointing out that running konqueror even as a file manager on a machine connected to the internet could be considered dangerous so its probably better done as/when needed! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.