Home » Questions » Computers [ Ask a new question ]

Linux screenlets : can I remove the options from the menu?

Linux screenlets : can I remove the options from the menu?

I use "Screenlets" on my Ubuntu PC, primarily so that I can have a bigger trashcan?

Asked by: Guest | Views: 395
Total answers/comments: 1
Guest [Entry]

"The beauty of open source is that with enough effort anything is possible. In your case you're lucky that it's pretty easy.

gksudo gedit /usr/share/screenlets/Trash/TrashScreenlet.py

then add a # character to the beginning of line 138 so that it reads:

# self.add_default_menuitems()

Save the document and restart your screenlets and only Empty Trash and Open Trash should be left in the context menu for your trash screenlet. Remove the # to restore the default functionality.

However, I'm skeptical that you should want to do this; it hides some important functionality that I'm not sure is duplicated elsewhere. Tread lightly."