Tiny Core Linux

Tiny Core Extensions => TCE Bugs => Topic started by: nitram on June 21, 2015, 03:08:09 PM

Title: TC6 Fluxbox doesn't honour /home/tc/.fluxbox/menu config changes on reboot
Post by: nitram on June 21, 2015, 03:08:09 PM
All other Fluxbox configuration files appear honoured, except /home/tc/.fluxbox/menu file. Actually i have not yet needed to modify the apps, overlay and slitlist configuration files so not sure about those. The following configuration files are, however, honoured: init, keys. So for whatever reason the menu file gets overwritten with the default configuration on reboot.

My menu modifications work great when using Fluxbox, just aren't restored on reboot so i always need to restore from backup. Here's my menu config changes, not sure it should matter (just the fluff, firefox, aterm section towards the bottom were added):
Code: [Select]
[begin](Tiny Core)
[encoding]{UTF-8}
[include](/usr/local/tce.fluxbox)
[include](~/.fluxbox/ondemand)
[submenu](System Tools)
[exec](Apps){apps}
[exec](ControlPanel){cpanel}
[exec](Editor){editor}
[exec](Exit){exittc}
[exec](RunProgram){flrun}
[exec](MountTool){mnttool}
[exec](ScreenShot){screenshot.sh}
[exec](Services){services}
[exec](SetTime){sudo /usr/bin/getTime.sh}
[exec](Top){cliorx top}
[exec](Xkill){xkill}
[end]
[submenu] (Fluxbox menu)
[config] (Configure)
[submenu] (System Styles) {Choose a style...}
[stylesdir] (/usr/local/share/fluxbox/styles)
[end]
[submenu] (User Styles) {Choose a style...}
[stylesdir] (~/.fluxbox/styles)
[end]
[workspaces] (Workspace List)
[commanddialog] (Fluxbox Command)
[reconfig] (Reload config)
[restart] (Restart)
[exec] (About) {(fluxbox -v; fluxbox -info | sed 1d) | xmessage -file - -center}
[end]
[separator]
[exec] (Exit) {exittc}
[separator]
[exec] (firefox) {firefox}
[exec] (fluff) {fluff}
[exec] (aterm) {aterm}

[endencoding]
[end]
Will play around with it a bit more later, but something appears wrong?
Title: Re: TC6 Fluxbox doesn't honour /home/tc/.fluxbox/menu config changes on reboot
Post by: Misalf on June 21, 2015, 04:33:58 PM
True, the default menu file always gets overwritten by the extensions desktop script
(/usr/local/bin/fluxbox_initmenu).

Edit  ~/.fluxbox/init  and change the default menu file
from
Code: [Select]
session.menuFile: ~/.fluxbox/menu
to
Code: [Select]
session.menuFile: ~/.fluxbox/menu_custom

Copy  ~/.fluxbox/menu  to  ~/.fluxbox/menu_custom .
Edit  menu_custom  instead of  menu .

If you want to get really crazy
http://forum.tinycorelinux.net/index.php/topic,17216.0.html
Title: Re: TC6 Fluxbox doesn't honour /home/tc/.fluxbox/menu config changes on reboot
Post by: nitram on June 21, 2015, 06:47:42 PM
Thanks again Misalf. That was easy, now working great. Pass the bagels, no icons for me please. Sorry for accusing you Fluxbox :)
Title: Re: TC6 Fluxbox doesn't honour /home/tc/.fluxbox/menu config changes on reboot
Post by: hal9king on June 21, 2015, 09:10:34 PM
you can make your fluxbox menu any name you want by editing 'init' and changing the entry:  session.menuFile:       ~/.fluxbox/xxxx