You can call a function from within a sourced file and it'll run (no matter x bit).
So:
# ~/bin/runner.sh
runner () {
echo foo
}
runner
# ~/.bashrc
PATH="$PATH:~/bin"
source runner.sh
Put the command at the end of /home/user/.profile
It works for me.
thanks for help but does not work :-/
Pol