This script (parts of it) runs perfectly when invoked manually from the Terminal:
#!/bin/bash
[[ "`ps -e | grep -c $(basename $0)`" -gt "2" ]] && echo -e "`basename $0`: Mutiple instances found. Terminating this process." && exit 1
cd "`dirname $0`"
notify-send -u low "Script started"
[ .. some variables ..]
auth=`gpg -q --no-use-agent --passphrase-file $HOME/passphrase -d ./encrypted_auth`
wget --post-data """$auth""" --keep-session-cookies --save-cookies a -qO /dev/null "$post"
[ .. some more script ..]
The problem, is that it doesn't run when placed in the Startup Applications (GNOME Shell).
Can you please help me fix this? Thanks.