mirror of
https://github.com/0intro/wmii
synced 2024-12-25 21:06:57 +03:00
using unpredictable wmii address and wmiirc' proglist due to mktemp (prevents some security concerns)
This commit is contained in:
parent
d310c746b7
commit
4189258700
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user