site  contact  subhomenews

HOME variable undefined

April 28, 2010 — BarryK
The 'fixmenus' script gets called in a place where it doesn't work properly. At bootup, /etc/rc.d/rc.update calls it at a version update of the 'pupsave' file, but at that time 'HOME' variable is not defined, which breaks some programs that fixmenus calls -- such as 'obmenu-refresh'.

I have put in a test in /usr/sbin/fixmenus to set HOME='/root' if not defined. This script is in 'xdg_puppy' PET package, now 'xdg_puppy-0.7.6-10-p4.pet'. Woof will now use that.

Comments

fixmenus
Username: zigbert
I have updated fixmenus in DuDE to meet this issue. Added line: [b][ ! "$HOME" ] && HOME='/root'[/b] Did I get it right? Sigmund"28 Apr 2010, 16:35"01543"85.166.154.43'HOME"BarryK"Change it to: [ ! "$HOME" ] && export HOME='/root' Username: 28 Apr 2010, 19:29
"01543"114.129.167.148're:HOME"zigbert"Thank you"28 Apr 2010, 20:04"01543"85.166.154.43'Re HOME again"BarryK"No, I got it wrong. When rc.update is executing, HOME='/', so need this in fixmenus: [ "$HOME" = "/" ] && HOME='/root' export HOME Username: 1 May 2010, 13:32
"01543"114.129.167.148'

Tags: woof