WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Items Not Added to Menu  (Read 3057 times)

Offline perthie

  • Full Member
  • ***
  • Posts: 118
Items Not Added to Menu
« on: November 12, 2009, 01:50:20 PM »
I have an extension that makes a menu item but not a wbar icon. If I load it after bootup by mounting, it does not get immediately added to the menu. So it looks like the extension was never installed. But if I install it to memory, it does get added.

This happens both when I load it from the repo and from my optional folder.
« Last Edit: November 12, 2009, 02:00:26 PM by perthie »

Offline Kingdomcome

  • Sr. Member
  • ****
  • Posts: 286
Re: Items Not Added to Menu
« Reply #1 on: November 12, 2009, 02:51:24 PM »
Which extension is it?  I "Mount" all the extensions I use, and all the expected menu entries are shown in the applications menu.  Is the entry listed in /usr/local/tce.menu/?

Offline perthie

  • Full Member
  • ***
  • Posts: 118
Re: Items Not Added to Menu
« Reply #2 on: November 12, 2009, 03:23:17 PM »
The two extensions I'm working with are epdfview-cups and sgmixer. I also saw the same effect with OSS.tczm.  The items were never added to tce.menu. [Edit] They were.

I tried again with "base norestore" and the results were inconsistent. Sometimes, a menu item would be added and sometimes not. Both extensions pass the extaudit test.  This is with 2.5 final.

Maybe it's just me.

« Last Edit: November 13, 2009, 02:40:09 AM by perthie »

Offline 4-stroke

  • Jr. Member
  • **
  • Posts: 72
Re: Items Not Added to Menu
« Reply #3 on: November 12, 2009, 08:42:21 PM »
This happened to me also. The extension was mtpaint and some others. The menu didn't refresh until I restarted x. TC 2.5 and extensions loaded to ram.
A learning experience is one of those things that say, "You know that thing you just did? Don't do that." - Douglas Adams

Offline perthie

  • Full Member
  • ***
  • Posts: 118
Re: Items Not Added to Menu
« Reply #4 on: November 13, 2009, 05:30:05 AM »
Quote
The menu didn't refresh until I restarted x.

Yes. That  does a menu refresh for me too.


Offline perthie

  • Full Member
  • ***
  • Posts: 118
Re: Items Not Added to Menu
« Reply #5 on: November 13, 2009, 05:42:49 AM »
After some more testing, there appears to be a pattern.

Load extension A. Both its menu entry and wbar icon are installed.
Then load extension B. The icon is installed, but not the menu entry.
Restarting X puts both A and B on the menus.

Load extension B. Both its menu entry and wbar icon are installed.
Then load extension A. The icon is installed, but not the menu entry.
Restarting X puts both B and A on the menus.

This happens both when extensions are mounted and installed to RAM.


« Last Edit: November 13, 2009, 05:52:45 AM by perthie »

Offline roberts

  • Administrator
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: Items Not Added to Menu
« Reply #6 on: November 13, 2009, 06:48:01 AM »
There is a bug with flwm_topside. Hard to believe that Private Preview QA and Public RC did not catch it.
I personally do not use flwm_topside, thus gives me pause that perhaps I should switch to what I do use, flwm the classic version.

The fix for topside is:

/usr/bin/flwm_topside_restart
#!/bin/sh
kill -s USR2 `pidof flwm_topside`

.wmx/Refresh_Menu
#!/bin/sh
exec flwm_topside_restart

It is only the /usr/bin/flwm_topside_restart that is crucial, so adding

usr/bin/flwm_topside_restart to /opt/.filetool.lst 
(note no leading / ), should make dynamic menus work.


 
« Last Edit: November 13, 2009, 07:00:06 AM by roberts »
10+ Years Contributing to Linux Open Source Projects.

Offline MikeLockmoore

  • Hero Member
  • *****
  • Posts: 525
  • Good software needn't be big!
Re: Items Not Added to Menu
« Reply #7 on: November 13, 2009, 10:05:05 AM »
Quote
There is a bug with flwm_topside.

Is this a bug in the flwm_topside executable (which would need a sourcecode change) or a bug in the scripts that call/signal flwm_topside?
--
Mike L.

Offline roberts

  • Administrator
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: Items Not Added to Menu
« Reply #8 on: November 13, 2009, 10:11:58 AM »
The script ..._restart as above, as the signal is sent to a pid and the menu to be re-read is in the unchanged directory scructure .wmx/
10+ Years Contributing to Linux Open Source Projects.

Offline perthie

  • Full Member
  • ***
  • Posts: 118
Re: Items Not Added to Menu
« Reply #9 on: November 13, 2009, 11:56:09 AM »
OK. I can confirm that with those changes, menus are now updated correctly each time tce-load installs an extension.

Thanks.


Offline roberts

  • Administrator
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: Items Not Added to Menu
« Reply #10 on: November 13, 2009, 01:45:34 PM »
Thanks to you for reporting the error. Glad to hear it is now working.
10+ Years Contributing to Linux Open Source Projects.