[banshee] [darwin] add check to regenerate .app config files
- From: Aaron Bockover <abock src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [banshee] [darwin] add check to regenerate .app config files
- Date: Fri, 29 Jan 2010 02:51:59 +0000 (UTC)
commit 1d6a61b96a167388c4f3f65c9f641a5e66c7384e
Author: Aaron Bockover <abockover novell com>
Date: Thu Jan 28 21:43:08 2010 -0500
[darwin] add check to regenerate .app config files
If the first-run file exists in the .app bundle, regenerate
config files, then remove the first-run file. This works around
a strange case where someone might download the bundle, run it,
delete it, download it again (e.g. from the same path) which
would mean the config files would not have been regenerated.
Ok, so I was one of those people.
src/Clients/Booter/banshee-1.darwin.in | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/src/Clients/Booter/banshee-1.darwin.in b/src/Clients/Booter/banshee-1.darwin.in
index 085a6ec..c2b8707 100644
--- a/src/Clients/Booter/banshee-1.darwin.in
+++ b/src/Clients/Booter/banshee-1.darwin.in
@@ -58,7 +58,14 @@ EOF
fi
mkdir -p "$BANSHEE_CONFIG_DIR"
-PREVIOUS_APP_ROOT="$(cat "$BANSHEE_CONFIG_DIR/app-bundle-location" 2>/dev/null)"
+if [ -f "$RES_DIR/first-run" ]; then
+ echo "Appears to be first run of this application bundle."
+ rm -f -- "$RES_DIR/first-run"
+ PREVIOUS_APP_ROOT=""
+else
+ PREVIOUS_APP_ROOT="$(cat "$BANSHEE_CONFIG_DIR/app-bundle-location" 2>/dev/null)"
+fi
+
if [ ! "$APP_ROOT" = "$PREVIOUS_APP_ROOT" ]; then
echo "Application bundle has moved. Adjusting bundle..."
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]