Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 258564 - x11-wm/dwm-5.4.1 default Xsession fails to set status text
Summary: x11-wm/dwm-5.4.1 default Xsession fails to set status text
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Cédric Krier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-11 07:35 UTC by Boney McCracker
Modified: 2009-02-12 00:49 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Boney McCracker 2009-02-11 07:35:50 UTC
dwm used to accept status text for display on its "bar" from stdin.  As of 5.4, text is sent to be displayed using xsetroot.  So the default status text loop included in /etc/X11/Xsessions/dwm no longer works.

Reproducible: Always

Steps to Reproduce:
emerge x11-wm/dwm-5.4.1

Actual Results:  
Unless the user creates a ~/.dwm/dwmrc file, the window manager displays no status text.

Expected Results:  
The current default /etc/X11/Xsessions/dwm file was intended to display the output of `date`.

Being nothing but a clock, this would be trivial, except the default Xsession file serves as an example used by new users as to how they can arbitrarily set the status text, which is an important feature of the window manager.

Proposed replacement /etc/X11/Xsessions/dwm file:
---------------------------------------------------------------
#!/bin/sh

# call user status message script or use default

DIR=${HOME}/.dwm
if [ -f "${DIR}"/dwmrc ]; then
        /bin/sh "${DIR}"/dwmrc &
else
    while true; do
        xsetroot -name "$(date +"%a %b %-e %T")"
        sleep 1
    done &
fi

# start window manager
exec /usr/bin/dwm
--------------------------------------------------------------
Comment 1 Cédric Krier gentoo-dev 2009-02-11 23:33:11 UTC
Fix in cvs
Comment 2 Boney McCracker 2009-02-12 00:49:51 UTC
Thank you, Cédric.