I haven't got enough reputation to answer Rosamunda Rosamunda's comment so I'll just answer here.
Instead of using sudo nano gedit use sudo gedit [path].
sudo gives you root priviliges
gedit means you want to start the program gedit.
and then the path. Example:
sudo gedit /usr/share/app-install/desktop/applications.menu
Just a general Linux tip: you are starting a program every time you type a word in the terminal.
[program name] [arguments for the program]
so the next line means start the program gedit and the /usr/share/....... argument tells gedit that it have to open that file.
gedit /usr/share/app-install/desktop/applications.menu
when putting sudo infront of the command tells linux that the command should be run with root priviliges.
sudo gedit /usr/share/app-install/desktop/applications.menu