? MyF-Spot.diff
? FlickrNet/FlickrNet.dll
? FlickrNet/Makefile
? FlickrNet/Makefile.in
? libeog/access.lo
? libeog/accessible-image-view-factory.lo
? libeog/accessible-image-view.lo
? libeog/cursors.lo
? libeog/eog-file-selection.lo
? libeog/eog-image.lo
? libeog/eog-pixbuf-util.lo
? libeog/eog-scroll-view.lo
? libeog/image-view.lo
? libeog/libeog-marshal.lo
? libeog/libfspoteog.la
? libeog/ui-image.lo
? libeog/uta.lo
? libeog/zoom.lo
? libfspot/f-image-view.lo
? libfspot/f-jpeg-utils.lo
? libfspot/f-marshal.lo
? libfspot/f-pixbuf-save.lo
? libfspot/f-pixbuf-unsharp.lo
? libfspot/f-pixbuf-utils.lo
? libfspot/f-screen-utils.lo
? libfspot/f-utils.lo
? libfspot/libfspot.la
? libjpegtran/jpeg-data.lo
? libjpegtran/jpeg-marker.lo
? libjpegtran/jpegtran.lo
? libjpegtran/libfspotjpegtran.la
? libjpegtran/transupp.lo
? po/.intltool-merge-cache
? src/.Global.cs.swp
? tools/Makefile
? tools/Makefile.in
? tools/f-spot-screensaver.desktop
Index: src/Global.cs
===================================================================
RCS file: /cvs/gnome/f-spot/src/Global.cs,v
retrieving revision 1.8
diff -u -p -r1.8 Global.cs
--- src/Global.cs	22 Mar 2006 19:14:41 -0000	1.8
+++ src/Global.cs	7 Jun 2006 14:26:21 -0000
@@ -1,3 +1,6 @@
+using System;
+using System.IO;
+
 namespace FSpot {
 	public class Global {
 		public static string HomeDirectory {
@@ -14,7 +17,20 @@ namespace FSpot {
 
 		public static string PhotoDirectory {
 			get {
-				return System.IO.Path.Combine (HomeDirectory, "Photos");
+				string ret = "";
+				GConf.Client client = new GConf.Client ();
+				
+				try {
+					if ( client.Get ("/apps/f-spot/PhotoDirectory") != null ) 
+						ret = (string) client.Get ("/apps/f-spot/PhotoDirectory");
+				} catch {
+					client.Set ("/apps/f-spot/PhotoDirectory",
+						System.IO.Path.Combine (HomeDirectory,
+						System.IO.Path.Combine (".gnome2",
+						System.IO.Path.Combine ("f-spot","Photos") ) ) );	
+					ret = (string) client.Get ("/apps/f-spot/PhotoDirectory");
+				}
+				return ret;
 			}
 		}
 
