WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: TC6 Fluxbox doesn't honour /home/tc/.fluxbox/menu config changes on reboot  (Read 1779 times)

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
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?

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
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
« Last Edit: June 21, 2015, 04:44:55 PM by Misalf »
Download a copy and keep it handy: Core book ;)

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
Thanks again Misalf. That was easy, now working great. Pass the bagels, no icons for me please. Sorry for accusing you Fluxbox :)

Offline hal9king

  • Newbie
  • *
  • Posts: 49
you can make your fluxbox menu any name you want by editing 'init' and changing the entry:  session.menuFile:       ~/.fluxbox/xxxx
In science, we know ... what we don't know.