Author Topic: Lost "Applications" in right-click menu  (Read 816 times)

Offline Taco.22

  • Sr. Member
  • ****
  • Posts: 481
Lost "Applications" in right-click menu
« on: June 13, 2011, 09:20:12 PM »
I've installed OB Bonsai and done the updates.  Somewhere along the line the "Applications"  sub-menu in the right-click menu has stopped working.  I have replaced both menu.xml and rc.xml with originals but no change.  I remember a similar issue from a while ago but I can't for the life of me recall the solution.  Any help gratefully appreciated.
Linux Registered User # 529407


Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15829
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Lost "Applications" in right-click menu
« Reply #1 on: June 14, 2011, 12:51:15 AM »
Try this --
Reinstall openbox-menu.

Offline Taco.22

  • Sr. Member
  • ****
  • Posts: 481
Re: Lost "Applications" in right-click menu
« Reply #2 on: June 14, 2011, 03:32:47 AM »
Thanks for the hint Neal - I checked it out in Synaptic for future reference.  Now the bad news - the problem has fixed itself.  I hate it when that happens!  I've had it happen before once or twice, but this time it really persisted and I thought I had borked something.  Now I know where to go if it happens again. 
Linux Registered User # 529407


Offline melodie

  • Hero Member
  • *****
  • Posts: 5945
  • Internet Relay Chat sur Freenode
    • PCLinuxOS Fr
Re: Lost "Applications" in right-click menu
« Reply #3 on: June 14, 2011, 05:45:52 AM »
Thanks for the hint Neal - I checked it out in Synaptic for future reference.  Now the bad news - the problem has fixed itself.  I hate it when that happens!  I've had it happen before once or twice, but this time it really persisted and I thought I had borked something.  Now I know where to go if it happens again. 

Hi Taco and Neal,

Reinstalling openbox-menu has no effect on right-click menu, because openbox-menu is just a pipe-menu. It is the libe menu-cache (Lxde project) which does the job. To regenerate a right-click menu that has gone, or even to refresh it after you uninstall a program or install a new one, generally trying to display it twice on a row does the trick.

To avoid loosing the whole "Applications" right-click menu, check in your Bleachbit preferences config that the directory and files from ~/.cache/menus/* are added to the whitelist (it must be added in order to prevent Bleachbit from removing them when you operate a cleaning).

In case you want a fast fix, you can copy the cached files from /etc/skel/.cache/menus, or from /root/.cache/menus :
 in this case, you should check that the ownership of the files be your user (and correct it if the cached menu files still  belong to root after the copy).

Last : have you checked the new set of configuration files in /usr/share/openbox-menu after the last update ?


melodie at #lpic-fr on irc.freenode.net

Offline Taco.22

  • Sr. Member
  • ****
  • Posts: 481
Re: Lost "Applications" in right-click menu
« Reply #4 on: June 14, 2011, 08:32:52 AM »
Hi melodie,

Well I think I've done it this time!  No sooner posted about getting everything back and I've gone and lost it again.  Now I was removing extraneous bits from the system to lighten the load - maybe shouldn't have tossed .cache in home folder.  Unfortunately the root side seems to have a similar issue.  Everything is there in the Menu on the panel - just not in "Applications".  Tried copying the root .cache to home - no go.  Hmm - seemed to have really borked this time!
Linux Registered User # 529407


Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15829
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Lost "Applications" in right-click menu
« Reply #5 on: June 14, 2011, 10:22:31 AM »
Try Melodie's solution; i.e. right click a couple times. If that doesn't do it, reinstall libmenu-cache1 and try again.

Offline melodie

  • Hero Member
  • *****
  • Posts: 5945
  • Internet Relay Chat sur Freenode
    • PCLinuxOS Fr
Re: Lost "Applications" in right-click menu
« Reply #6 on: June 14, 2011, 11:49:47 AM »
Try Melodie's solution; i.e. right click a couple times. If that doesn't do it, reinstall libmenu-cache1 and try again.


Hi Neal,

I don't think any re-install is necessary. Just the right configurations in the relevant files.

In my /home/user/.config/bleachbit/bleachbit.ini file, at the end I can read:
Code: [Select]
[whitelist/paths]
0_path = /home/melodie/.cache/menus
0_type = folder

To get this, just go to Bleachbit menu, preferences, whitelist tab and add folders and files you need to protect. Same with Bleachbit-root.

And also for the menus to be refreshed normally fast and smooth, menu-cached **must not** be started in the /home/user/.config/openbox/autostart.sh file.

It was configured this way at the beginning but is not anymore since a long time : this is why I insisted on looking at the latest README and configuration files provided in the last package, thanks to Leiche ! \o/ ! :-)

Regards,
Mélodie

« Last Edit: June 14, 2011, 11:51:43 AM by melodie »
melodie at #lpic-fr on irc.freenode.net

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15829
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Lost "Applications" in right-click menu
« Reply #7 on: June 14, 2011, 11:55:06 AM »
Melodie,
That's fine to prevent the loss. After the loss has occurred? That is the reason for the reinstall - to replace what was lost.

Offline Taco.22

  • Sr. Member
  • ****
  • Posts: 481
Re: Lost "Applications" in right-click menu
« Reply #8 on: June 14, 2011, 08:50:16 PM »
Thanks all for the advice.  Finally got it sorted, but what an exercise in frustration!  Reinstalled libmenu-cache1 plus its depends inc. pcmanfm, but also copied over files from /skel.  Had problems with permissions until I realised that the .cache folder was accidentally "root".  Duh ::)  Lesson learn't - don't throw out the .cache files :D   
Linux Registered User # 529407


Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15829
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Lost "Applications" in right-click menu
« Reply #9 on: June 14, 2011, 08:53:13 PM »
..... don't throw out the .cache files :D   

 :D Yea. Good idea not to do that.
BTW, did you whitelist the .cache files in bleachbit yet?

Offline Taco.22

  • Sr. Member
  • ****
  • Posts: 481
Re: Lost "Applications" in right-click menu
« Reply #10 on: June 14, 2011, 09:15:51 PM »
Yep, was the very next thing I did!  I'm in the process of setting up for an updated version of the Blackcat Astronomy Edition with extra goodies, so it's good to get this out of the way.
Linux Registered User # 529407


Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15829
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Lost "Applications" in right-click menu
« Reply #11 on: June 14, 2011, 09:25:37 PM »
Good stuff coming. :)

Offline melodie

  • Hero Member
  • *****
  • Posts: 5945
  • Internet Relay Chat sur Freenode
    • PCLinuxOS Fr
Re: Lost "Applications" in right-click menu
« Reply #12 on: June 15, 2011, 03:27:04 AM »
Hi Taco,

I'll be looking forward to it for testing.

Regards,
Mélodie

melodie at #lpic-fr on irc.freenode.net