-Date: 2016-05-23 09:30
-Publish: 2016-05-23 09:30
-
-<p>Yesterday I updated the battery-stats package in Debian with a few
-patches sent to me by skilled and enterprising users. There are a few
-user nice and visible changes. First of all, both the desktop menu
-entries now work. A design flaw in one of the script made it fail if
-no controlling TTY was available. So the script worked when called
-from the command line, but not when called from the desktop menu.</p>
+Date: 2016-05-23 09:35
+
+<p>Yesterday I updated the
+<a href="https://tracker.debian.org/pkg/battery-stats">battery-stats
+package in Debian</a> with a few patches sent to me by skilled and
+enterprising users. There were some nice user and visible changes.
+First of all, both desktop menu entries now work. A design flaw in
+one of the script made the history graph fail to show up (its PNG was
+dumped in ~/.xsession-errors) if no controlling TTY was available.
+The script worked when called from the command line, but not when
+called from the desktop menu. I changed this to look for a DISPLAY
+variable or a TTY before deciding where to draw the graph, and now the
+graph window pop up as expected.</p>