Jump to content

KDE right click options


chris z
 Share

Recommended Posts

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 by chris z
Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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 by chris z
Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • 1 month later...

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!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...