Unable to edit Main Menu

Asked by John Blythe Reid

I upgraded from Karmic Koala to Lucid Lynx two days ago and I notice that I can no longer edit the main Menu. When I go to the top panel and select System->Preferences->Main Menu nothing happens. The drop down Preferences menu disappears, as I would expect, but nothing else displays. I would expect details of the Main menu to be displayed for me to be able to make changes to it.

Regards,
John Blythe Reid.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
John Blythe Reid
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

sudo apt-get install --reinstall -y alacarte

Then press ALT+F2 and type:

alacarte

then press ENTER

Revision history for this message
John Blythe Reid (jbreid-deactivatedaccount) said :
#2

I tried that but it has not made any difference.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

ok type alacarte in terminal and press enter, what is output

Revision history for this message
John Blythe Reid (jbreid-deactivatedaccount) said :
#4

john@john-desktop:~$ alacarte
Traceback (most recent call last):
  File "/usr/bin/alacarte", line 36, in <module>
    main()
  File "/usr/bin/alacarte", line 32, in main
    app = MainWindow(datadir, version, sys.argv)
  File "/usr/lib/pymodules/python2.6/Alacarte/MainWindow.py", line 48, in __init__
    self.editor = MenuEditor()
  File "/usr/lib/pymodules/python2.6/Alacarte/MenuEditor.py", line 36, in __init__
    self.__loadMenus()
  File "/usr/lib/pymodules/python2.6/Alacarte/MenuEditor.py", line 63, in __loadMenus
    self.save(True)
  File "/usr/lib/pymodules/python2.6/Alacarte/MenuEditor.py", line 67, in save
    fd = open(getattr(self, menu).path, 'w')
IOError: [Errno 13] Permission denied: '/home/john/.config/menus/applications.menu'
john@john-desktop:~$

That 'Permission denied' doesn't look too good. I'm new to Linux, what do I have to do to give it permission ?

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

ok run:

cd /home; sudo chown -R john:john ./john

Does alacarte work ok now?

Revision history for this message
John Blythe Reid (jbreid-deactivatedaccount) said :
#6

This is what I get:

john@john-desktop:~$ cd /home; sudo chown -R john:john ./john
[sudo] password for john:
chown: cannot access `./john/.gvfs': Permission denied
chown: changing ownership of `./john/sambaVianiP4/desktop.ini': Permission denied
chown: changing ownership of `./john/sambaVianiP4/Elena/Musica Elena/Buena Vida, La/2003 - ?lbum': No such file or directory
chown: changing ownership of `./john/sambaVianiP4/Elena/Musica Elena/Habana Blues/2005 - Habana Blues/07 - echate p?alla echate p?aca.mp3': No such file or directory
chown: changing ownership of `./john/sambaVianiP4': Permission denied
john@john-desktop:/home$

Revision history for this message
John Blythe Reid (jbreid-deactivatedaccount) said :
#7

But alacarte does work ! It also works from the Preferences menu !!

Thanks a lot for your help.

Bye for now,
John.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#8

Do you by any cance use this command:

sudo nautilus

?

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#9

*chance

Revision history for this message
John Blythe Reid (jbreid-deactivatedaccount) said :
#10

No, I've never used 'sudo nautilus'.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#11

good, using sudo for gui apps can cause this. sudo gedit can also do the same thing. Glad you got the gold.

The command wass failing as you were not the owner of your own data, which you now are :)