aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/fluxbox/fluxbox/gpe-logout.fluxbox
blob: 29a6ab6ab3f173b0bb731f89787948796e9c20e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

gpe-question --icon /usr/share/pixmaps/gpe-logout.png --question "<span weight='bold' size='larger'>Are you sure you want to log out?</span> 

Unsaved data from applications will be lost." --buttons !gtk-cancel "ok:Log out"

# check for button number returned by gpe-question:
if [ $? -eq 1 ]; then
    echo "Logout.";
    killall fluxbox
fi
# hack to run on simpad too
    killall metacity; 
else
    echo "Logout cancelled.";
fi