tazpanel rev 590
settings.cgi: fix logout after using "tweaks"
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Mon Apr 25 22:26:43 2016 +0200 (2016-04-25) |
parents | 5f988d8f32b1 |
children | c8226a527542 |
files | settings.cgi |
line diff
1.1 --- a/settings.cgi Mon Apr 25 14:42:42 2016 +0200 1.2 +++ b/settings.cgi Mon Apr 25 22:26:43 2016 +0200 1.3 @@ -41,7 +41,8 @@ 1.4 1.5 # if LXPanel not running, just run it with default option 1.6 if [ -z "$lxpanel_pid" ]; then 1.7 - sh -l -c "lxpanel -p slitaz" & 1.8 + (pstree | grep -q pcmanfm) && pcmanfm /etc/xdg/autostart/lxpanel.desktop || 1.9 + sh -l -c "lxpanel -p slitaz" & 1.10 else 1.11 # who started LXPanel?.. 1.12 lxpanel_user="$(ps -o pid,user | fgrep "$lxpanel_pid " | awk '{print $2}')" 1.13 @@ -54,7 +55,8 @@ 1.14 1.15 # stop LXPanel and start it again with the same command 1.16 kill $lxpanel_pid 1.17 - sh -l -c "$lxpanel_comm" & 1.18 + (pstree | grep -q pcmanfm) && pcmanfm /etc/xdg/autostart/lxpanel.desktop || 1.19 + sh -l -c "$lxpanel_comm" & 1.20 fi 1.21 fi 1.22