f-spot r4687 - in trunk: . tools
- From: lmilesi svn gnome org
- To: svn-commits-list gnome org
- Subject: f-spot r4687 - in trunk: . tools
- Date: Tue, 6 Jan 2009 12:06:28 +0000 (UTC)
Author: lmilesi
Date: Tue Jan 6 12:06:28 2009
New Revision: 4687
URL: http://svn.gnome.org/viewvc/f-spot?rev=4687&view=rev
Log:
2009-01-06 Lorenzo Milesi <maxxer yetopen it>
* tools/f-spot-sqlite-upgrade: handle $XDG_CONFIG_HOME for db location
Modified:
trunk/ChangeLog
trunk/tools/f-spot-sqlite-upgrade
Modified: trunk/tools/f-spot-sqlite-upgrade
==============================================================================
--- trunk/tools/f-spot-sqlite-upgrade (original)
+++ trunk/tools/f-spot-sqlite-upgrade Tue Jan 6 12:06:28 2009
@@ -3,7 +3,10 @@
# This only upgrades the default database location
# if you have specified a different location
-DB_LOCATION=~/.gnome2/f-spot/photos.db
+if [ ! -n "$XDG_CONFIG_HOME" ]; then
+ XDG_CONFIG_HOME="$HOME/.config"
+fi
+DB_LOCATION="$XDG_CONFIG_HOME/f-spot/photos.db"
BACKUP_LOCATION=$DB_LOCATION.backup
DUMP_LOCATION=$DB_LOCATION.dump
NEW_DB_LOCATION=$DB_LOCATION.new
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]