|
![]() ![]() ![]() To add a custom entry to the context menu we have to edit the menu applet. Follow these steps: 1) go to "/usr/share/cinnamon/applets/menu@cinnamon.org". 2) edit the file named "applet.js"; 3) scroll down to the ApplicationContextMenuItem class definition; 4) find the "activate" method and add the following case to the switch code block: case "run_as_root": 5) scroll down to the GenericApplicationButton class definition; 6) find the "populateMenu" method and add the following lines before the method close: menuItem = new ApplicationContextMenuItem(this, "Run as root", "run_as_root", "locked"); Continua... Leggi notizia
( 1545 letture )
| permalink
|
![]() ![]() ![]() ![]() ![]() ![]() ![]() | 1 | |