sillysloft / fluxbox

Fluxbox Window Manager (Mirror)
http://fluxbox.org/news/
Other
0 stars 1 forks source link

0.9.10: menu [include] does nothing #362

Open sillysloft opened 19 years ago

sillysloft commented 19 years ago

I've compiled 0.9.10 on SPARC Solaris 9 and Fedora Core 1 boxes, and both have the same problem. I use [include]s quite a bit in my menu file, and they now appear to do nothing. I can copy the contents of the file exactly into the main menu file, and everything is fine. Here is a little test menu file that does not work. I'm hoping somebody can just tell me I've got a syntax error, but I just can't see it. The Testing2 submenu is displayed, but not Testing.

--------------------------

~/.fluxbox/menu:

[begin] (Fluxbox)

[exec] (localhost) {xterm&}

[include] (~/.fluxbox/testmenu)

[submenu] (Testing2) [exec] (localhost) {xterm&} [end]

[workspaces] (Workspace list) [exec] (Run...) {fbrun} [separator] [exec] (Lock) {xscreensaver-command -lock} [restart] (Restart) [exit] (Exit)

[end]

----------------------------------

~/.fluxbox/testmenu:

[submenu] (Testing) [exec] (localhost) {xterm&} [end]

Reported by: wdfrank

sillysloft commented 19 years ago

Logged In: YES user_id=1101187

after the rewrite of the menu-creation code you would need [include] .. [end] ... since that is not needed anymore, this bug should be solved

Original comment by: akir

sillysloft commented 19 years ago

Original comment by: akir

sillysloft commented 19 years ago

Logged In: YES user_id=630503

Thanks - finally found what I was missing. Apparently, I was missing a [begin] line at the start of the included file. That cleared it up.

Original comment by: wdfrank