Silly me! After a bit of thinking I found a good and easy way of doing it:
- Copy the contents of
~/.xprofile
into a script somewhere. Make sure it's executable. - Start
gnome-session-properties
and add a new startup program. Point it to the script.
That's it.
Much easier than fiddling around with special dot-files that are sourced on login, really :)