WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: v5.3. icewm config overwritten  (Read 2369 times)

Offline bzipitidoo

  • Newbie
  • *
  • Posts: 1
v5.3. icewm config overwritten
« on: August 23, 2014, 09:36:02 AM »
I'm trying to make the desktop look as much like classic Windows as possible.  Removed wbar, and changed to icewm because, unlike openbox and flwm, icewm has a taskbar with a menu button.  I'm also trying to simplify the main menu as much as possible.  For instance, do not want "restart icewm" in it.

The problem I'm having now is icewm does not preserve changes to the main menu.  The rest of my settings are preserved, things like putting the taskbar on the bottom.  But /home/tc/.icewm/menu is overwritten during boot.  I tried setting the file to read only, then tried changing ownership to root and setting read only, and it was still overwritten.  Digging further, I see that there's this script, /usr/local/bin/icewm_initmenu, which is responsible.

How best to fix this?  It's not so easy to simply delete or change icewm_initmenu.  Maybe I could unsquash /mnt/sda1/tce/optional/icewm.tcz (I put TC on the hard drive), delete icewm_initmenu and pack it back up.  But if the user tried to update all the software, would that undo that change?  Or is there some setting in icewm to stop it from generating a menu?  Perhaps icewm_initmenu should overwrite the system copy of menu, not the local user's copy?  Or maybe I should add a few lines to .profile, something like "sleep 5;cp .backup/menu .icewm/"?    Or just make icewm_initmenu unable to overwrite the menu file if it is read only.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: v5.3. icewm config overwritten
« Reply #1 on: August 23, 2014, 10:29:37 AM »
There is a set of TC integration scripts which create menu based on TC menu. Check them and modify or simply delete to get back original icewm behavior.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: v5.3. icewm config overwritten
« Reply #2 on: August 23, 2014, 10:32:19 AM »
/usr/local/bin/icewm_initmenu  is responsable for creating menu items of currently installed apps. If you remove this file from the extension and then boot without restoring your custom files from a backup, and without any kind of launcher, you might have a hard time doing anything else than exit out of X.

Some WMs can be configured to use an alternative menu config file (the default one still gets rewritten at each boot) and additionally 'include' seperate menu config files.
I don't see something like that in IceWM so I'd suggest editing the default config files and rebuilding the extension.
Download a copy and keep it handy: Core book ;)