[Lancaster] Linux Mint Menu Problem
andy baxter
andy at earthsong.free-online.co.uk
Sun Aug 9 07:12:50 UTC 2009
Definitely odd behaviour - I would have thought the elif would be
somewhere in there. You could try grepping your whole filesystem for the
same 'elif :' string - the error may be in a config file which is loaded
from somewhere else. This would take a while though, so maybe leave it
running overnight. I would use the following command:
grep -r 'elif :' /* | tee ~/Desktop/grep-results.txt
This would log the results to a file called grep-results.txt.
Alternatively, you could be a bit more selective, and look through the
list of files installed by mintmenu to see if there are any files or
directories in there that look as if they may be worth searching. You
can get the file list by using:
dpkg -l '<mintmenu>'
Where <mintmenu> is the proper package name for mint menu.
andy
k.walton.esq at googlemail.com wrote:
> Hi Andy,
>
> Thanks for the suggestion -- it seemed like a good idea, but I gave
> that a try, and grep didn't give any returns at all. I've uninstalled
> wine, and the problem is still happening, so it can't be something
> caused by wine trying to add itself to the menu. It's all very mysterious.
>
> On 8 Aug 2009 21:13, andy baxter <andy at earthsong.free-online.co.uk> wrote:
> > Hi ken,
> >
> >
> >
> > elif :
> >
> >
> >
> > is a syntax error in python. The colon should come immediately after
> the elif, with no space. Not sure how far this gets you though. You
> could try something like:
> >
> >
> >
> > # go to the relevant directory
> >
> >
> >
> > cd /var/lib/python-support/python2.6/xdg
> >
> >
> >
> > # search for any files which have that 'elif :' in them
> >
> > grep -r 'elif :' *
> >
> >
> >
> > Then edit the relevant file to correct that line (you'll have to do
> this as root) and see what happens.
> >
> >
> >
> > andy
> >
> >
> >
> > Ken Walton wrote:
> >
> >
> > Hi folks,
> >
> >
> >
> > Don't know if any of you know anything about the Linux Mint menu, but
> >
> > mine's severely messed up at the moment. I installed Wine yesterday
> >
> > (in Linux Mint Gloria, the latest version) and after the install, the
> >
> > menu was so tall it went off the top of the screen; on the left hand
> >
> > side, the quit button is just visible at the top of the screen (it
> >
> > should be at the bottom) and on the right hand side, where the program
> >
> > icons should be, it says:
> >
> >
> >
> >
> ===============================================================================
> >
> >
> >
> > __mergeFile(os.path.join(value, item), child, parent)
> >
> >
> >
> > File "/var/lib/python-support/python2.6/xdg/Menu.py", line 791, in
> __mergeFile
> >
> > __parse(child,filename,parent)
> >
> >
> >
> > File "/var/lib/python-support/python2.6/xdg/Menu.py", line 537, in
> __parse
> >
> > __parseMenu(child, filename, parent)
> >
> >
> >
> > File "/var/lib/python-support/python2.6/xdg/Menu.py", line 691, in
> __parseMenu
> >
> > __parse(child, filename, m)
> >
> >
> >
> > File "/var/lib/python-support/python2.6/xdg/Menu.py", line 571, in
> __parse
> >
> > parent.Rules.append(Rule(child.tagName, child))
> >
> >
> >
> > File "/var/lib/python-support/python2.6/xdg/Menu.py", line 284, in
> __init__
> >
> > self.compile()
> >
> >
> >
> > File "/var/lib/python-support/python2.6/xdg/Menu.py", line 303, in
> compile
> >
> > """ % self.Rule) in self.__dict__
> >
> >
> >
> > File "", line 6
> >
> >
> >
> > elif :
> >
> >
> >
> > ^
> >
> >
> >
> > SyntaxError: invalid syntax
> >
> >
> >
> >
> ===============================================================================
> >
> >
> >
> > I've tried completely uninstalling mintmenu (including config files),
> >
> > rebooting and reinstalling, but it's exactly the same. I can install
> >
> > the standard Gnome menu instead, but I like the Mint menu better.
> >
> >
> >
> > I asked on the Linux Mint forum yesterday, but responses have been
> >
> > conspicuous by their absence. Anyone here any ideas?
> >
> >
> >
> > --
> >
> > Ken Walton
> >
> >
> >
> > _______________________________________________
> >
> > Lancaster mailing list
> >
> > Lancaster at mailman.lug.org.uk
> >
> > https://mailman.lug.org.uk/mailman/listinfo/lancaster
> >
> >
> >
> >
> >
> >
> >
> >
More information about the Lancaster
mailing list