diff --git a/on_gnome_start.sh b/on_gnome_start.sh deleted file mode 100644 index c72cdceed896b2163f8d611336b8e3f6658ce4ce..0000000000000000000000000000000000000000 --- a/on_gnome_start.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/bash -# This script should be run after gnome being started. - -_my_path="$0" -secret_file="$1" - -[[ "$secret_file" = '' ]] && echo "Usage: $0 <secret_file>" && exit 1 - -function where_is_him () { - SOURCE="$1" - while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink - DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" - SOURCE="$(readlink "$SOURCE")" - [[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located - done - DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" - echo -n "$DIR" - } - -function where_am_i () { - where_is_him "$_my_path" -} - -cd `where_am_i` && -gpg --decrypt "$secret_file" | bin/unlock_keyrings --secret-file - # --quiet - -exit $? - -