3
################################################################################
5
# Copyright 2012 Yorba Foundation
7
# This software is licensed under the GNU LGPL (version 2.1 or later).
8
# See the COPYING file in this distribution.
10
# Helper script to copy settings data from /apps/shotwell/ to
11
# /org/yorba/shotwell/
13
# NOTE: this should only be run ONCE as part of the upgrade process; otherwise,
14
# any stale data in the old location may be inadvertently copied over again,
15
# overwriting newer data.
17
################################################################################
19
sec_since_epoch=`date +%s`
20
temp_file_path_prefix=/tmp/shotwell-migrate-settings-path-
21
temp_file_path=$temp_file_path_prefix$sec_since_epoch
23
# Copy from deprecated path...
24
dconf dump /apps/shotwell/ > $temp_file_path
26
# ...and into officially-blessed one.
27
dconf load /org/yorba/shotwell/ < $temp_file_path
29
# temp file not needed anymore, zap it.