I have this script:
#!/bin/sh
cd ~/.devilspie && devilspie Minimize.ds
pkill devilspie
exit 0
The first command runs absolutely fine, but in the second line where it needs to kill the process, it doesn't do so. If I run the command in terminal it works as intended but not in the script. Is there anything wrong with the script.