EasyOS update fix for JWM
There was one report that updating EasyOS to 3.4 from 3.3 broke the desktop, whereas a new installation of 3.4 was OK.
I am trying to chase down what might go wrong when do an update. I have done it on two PCs without problems. One was an update from 3.1.11, the other from 3.3.
I discovered one potential problem, with JWM. The file /root/.jwmrc-tray has a different format in 3.4. File /root/.jwm/jwmrc-personal has changed with the upcoming 3.4.1. See a couple of earlier posts:
- sed one-liner to extract lines between two patterns — February 14, 2022
- Changes needed to fix JWMDesk — February 13, 2022
...the second link shows the new /root/.jwmrc-tray.
For Easy 3.4.1, /root/.jwm/jwmrc-personal will have some changes to enhance editability:
<JWM>
<!-- Virtual desktops. -->
<!--STARTDESKTOPS-->
<Desktops width="2" height="1">
<Background type="image">/usr/share/backgrounds/default.jpg</Background>
</Desktops>
<!--ENDDESKTOPS-->
<!-- Double click speed (in milliseconds) -->
<DoubleClickSpeed>400</DoubleClickSpeed>
<!-- Double click delta (in pixels) -->
<DoubleClickDelta>3</DoubleClickDelta>
<!-- The focus model (sloppy or click) -->
<FocusModel>click</FocusModel>
<!-- The snap mode (none, screen, or border) -->
<SnapMode distance="10">none</SnapMode>
<!-- The move mode (outline or opaque) -->
<MoveMode>outline</MoveMode>
<!-- The resize mode (outline or opaque) -->
<ResizeMode>outline</ResizeMode>
<!--STARTWINDOWSTYLE-->
<!--ENDWINDOWSTYLE-->
<!--STARTTASKLISTSTYLE-->
<!--ENDTASKLISTSTYLE-->
<!--STARTTRAYSTYLE-->
<!--ENDTRAYSTYLE-->
<!--STARTPAGERSTYLE-->
<!--ENDPAGERSTYLE-->
<!--STARTPOPUPSTYLE-->
<!--ENDPOPUPSTYLE-->
<!--STARTMENUSTYLE-->
<!--ENDMENUSTYLE-->
<!-- Key bindings -->
<!--STARTKEYBINDINGS-->
<Key key="Up">up</Key>
<Key key="Down">down</Key>
<Key key="Right">right</Key>
<Key key="Left">left</Key>
<Key key="h">left</Key>
<Key key="j">down</Key>
<Key key="k">up</Key>
<Key key="l">right</Key>
<Key key="Return">select</Key>
<Key key="Escape">escape</Key>
<Key mask="A" key="Tab">next</Key>
<Key mask="A" key="F4">close</Key>
<Key mask="A" key="F10">maximize</Key>
<Key mask="A" key="F6">minimize</Key>
<Key mask="A" key="#">desktop#</Key>
<Key mask="A" key="F1">root:3</Key>
<Key mask="A" key="F2">window</Key>
<Key keycode="160">exec:amixer sset Master toggle</Key>
<Key keycode="176">exec:amixer sset Master 1+,1+</Key>
<Key keycode="174">exec:amixer sset Master 1-,1-</Key>
<Key keycode="178">exec:defaultbrowser</Key>
<Key keycode="236">exec:defaultbrowser</Key>
<!--ENDKEYBINDINGS-->
</JWM>
If someone does an update to 3.4 or 3.4.1, one or both of these files may be pre-existing and have an inappropriate format. So, in /sbin/fixlayers script in the initrd, now has this check:
#20220215 easy 3.4 has different format in /root/.jwmrc-tray
if [ -f /mnt/${WKG_DEV}/${WKG_DIR}.session/root/.jwmrc-tray ];then
grep -q 'STARTMENU' /mnt/${WKG_DEV}/${WKG_DIR}.session/root/.jwmrc-tray
if [ $? -ne 0 ];then
rm -f /mnt/${WKG_DEV}/${WKG_DIR}.session/root/.jwmrc-tray
fi
fi
#20220215 easy 3.4.1 has different format in /root/.jwm/jwmrc-personal
if [ -f /mnt/${WKG_DEV}/${WKG_DIR}.session/root/.jwm/jwmrc-personal ];then
grep -q 'STARTWINDOWSTYLE' /mnt/${WKG_DEV}/${WKG_DIR}.session/root/.jwm/jwmrc-personal
if [ $? -ne 0 ];then
rm -f /mnt/${WKG_DEV}/${WKG_DIR}.session/root/.jwm/jwmrc-personal
fi
fi
Changing the subject, two 3.4 testers reported that they would
prefer bigger icons in the tray. I have increased the tray height
from 26 to 32. Also, the icons in .jwmrc-tray are changed from
*24.png to *48.png, so that they can scale down to fit the new
height.
Tags: easy