wmstartup: Polish the plasma path a bit

This commit is contained in:
Salt 2018-08-25 00:41:16 -05:00
parent aacaba1a5b
commit 53c55f948d

View File

@ -67,7 +67,7 @@ xrdbupdate
## SERVICES AND DAEMONS
# Kill everything
printf "[INFO] Stopping existing services\n"
services="krunner xfdesktop polybar compton conky sxhkd dunst xob"
services="plasmashell krunner xfdesktop polybar compton conky sxhkd dunst xob"
for service in $services; do
printf " [INFO] Sending signal to all $service\n"
killall $service
@ -175,8 +175,9 @@ fi
# Wallpaper management
printf "[INFO] Setting wallpaper\n"
if pgrep plasmashell > /dev/null 2>&1; then
printf " [INFO] Plasma is already doing that\n"
if which plasmashell > /dev/null 2>&1; then
printf " [INFO] Starting Plasma\n"
plasmashell &
elif which xfdesktop > /dev/null 2>&1; then
printf " [INFO] Starting xfdesktop\n"
xfdesktop --disable-wm-check&