using unpredictable wmii address and wmiirc' proglist due to mktemp (prevents some security concerns)

This commit is contained in:
Anselm R. Garbe 2006-05-25 13:17:17 +02:00
parent d310c746b7
commit 4189258700
2 changed files with 5 additions and 3 deletions

View File

@ -3,12 +3,13 @@
wmiiwm -c || exit 1
SOCKET=`mktemp /tmp/.wmii.address.$DISPLAY.XXXXXX`
PATH=$PATH:$HOME/.wmii-4:CONFPREFIX/wmii-4 export PATH
WMII_ADDRESS=unix!/tmp/ns.$USER.$DISPLAY/wmii export WMII_ADDRESS
WMII_ADDRESS=unix!$SOCKET export WMII_ADDRESS
mkdir -m 700 /tmp/ns.$USER.$DISPLAY 2>/dev/null
wmiiwm -a $WMII_ADDRESS &
wmiiwmpid=$!
mkdir $HOME/.wmii-4 2>/dev/null && welcome &
wmiirc &
wait $wmiiwmpid
rm -f $SOCKET

View File

@ -51,7 +51,7 @@ EOF
# MISC
xsetroot -solid '#333333'
status &
PROGS_FILE=/tmp/.wmiimenu.$USER.proglist
PROGS_FILE=`mktemp /tmp/.wmiimenu.proglist.XXXXXX`
proglist `echo "$PATH" | tr : ' '` >$PROGS_FILE &
# SHORTCUTS
@ -109,6 +109,7 @@ do
Start)
if test wmiirc = "$1"
then
rm -f $PROGS_FILE
exit
fi;;
BarClick)