Unify gsu_dir handling.
authorAndre Noll <maan@tuebingen.mpg.de>
Sun, 31 Aug 2014 19:01:02 +0000 (21:01 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Tue, 2 Sep 2014 19:45:37 +0000 (21:45 +0200)
commit8d89aa241a5199b0a25edcf0e56da08c64aa4014
treeba92a82efb4da0321a61c29670de75da51e354b5
parentf31cc416b1acdbb8f5703b208d943ce500a5b840
Unify gsu_dir handling.

The three locations which include the common part of gsu need to know
the gsu installation directory. Currently we rely on the application
to set $gsu_dir. This is unnecessary since gsu can tell where it is
installed by examining ${BASH_SOURCE[0]}.

Also the fallback to $HOME/.gsu is not required. This commit unifies
all three locations and also calls _gsu_setup as early as possible:
when the gsu module is sourced.
config
gui
subcommand