Hi.
I want to change Xfce layout on-the-fly :
I created an install script.
If i launch it, it does not work.
If i execute it manually, it works like a charm.
I searched for days, but i now give up TT. That's why i request your help...
Code:
#!/bin/sh
/usr/bin/xfce4-panel -x
killall xfconfd
#the Xfce settings
cp -r /etc/xdg/xfce-custom-settings/* $HOME/.config/
setsid sh -c 'cd / && xfwm4 --replace ... & :' > /dev/null 2>&1 < /dev/null
sleep 4
setsid sh -c 'cd / && xfce4-panel& ... & :' > /dev/null 2>&1 < /dev/null
The only explanation i found is, as the script is launched under a xfwm4 instance, this instance is "memorized" all script long, so, as xfwm4 is relaunched, nothing happens.
Does someone has an idea about how to "isolate" this script from it's dependency ?