Tiny Core Linux

Tiny Core Base => TCB Bugs => Topic started by: perthie on November 12, 2009, 04:50:20 PM

Title: Items Not Added to Menu
Post by: perthie on November 12, 2009, 04: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.
Title: Re: Items Not Added to Menu
Post by: Kingdomcome on November 12, 2009, 05: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/?
Title: Re: Items Not Added to Menu
Post by: perthie on November 12, 2009, 06: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.

Title: Re: Items Not Added to Menu
Post by: 4-stroke on November 12, 2009, 11: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.
Title: Re: Items Not Added to Menu
Post by: perthie on November 13, 2009, 08:30:05 AM
Quote
The menu didn't refresh until I restarted x.

Yes. That  does a menu refresh for me too.

Title: Re: Items Not Added to Menu
Post by: perthie on November 13, 2009, 08: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.


Title: Re: Items Not Added to Menu
Post by: roberts on November 13, 2009, 09: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.


 
Title: Re: Items Not Added to Menu
Post by: MikeLockmoore on November 13, 2009, 01:05:05 PM
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.
Title: Re: Items Not Added to Menu
Post by: roberts on November 13, 2009, 01:11:58 PM
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/
Title: Re: Items Not Added to Menu
Post by: perthie on November 13, 2009, 02:56:09 PM
OK. I can confirm that with those changes, menus are now updated correctly each time tce-load installs an extension.

Thanks.

Title: Re: Items Not Added to Menu
Post by: roberts on November 13, 2009, 04:45:34 PM
Thanks to you for reporting the error. Glad to hear it is now working.