# ubuntu_xdg_photo_dir.patch: Patch by Andrew Higginson to set the default import target to # XDG pictures dir/Photos (as translated). This only affects the first run, existing users # will see no change -- f-spot-0.6.0.0.orig/debian/patches/ubuntu_xdg_photo_dir.patch ++ f-spot-0.6.0.0/debian/patches/ubuntu_xdg_photo_dir.patch @ -0,0 +1,16 @@ Index: f-spot.git/src/Clients/MainApp/FSpot/Preferences.cs =================================================================== --- f-spot.git.orig/src/Clients/MainApp/FSpot/Preferences.cs 2010-08-11 19:48:53.000000000 +0100 +++ f-spot.git/src/Clients/MainApp/FSpot/Preferences.cs 2010-08-11 20:14:35.092511532 +0100 @@ -155,7 +155,14 @@ case SCREENSAVER_DELAY: return 4.0; case STORAGE_PATH: - return System.IO.Path.Combine (Global.HomeDirectory, Catalog.GetString("Photos")); + String default_storage_path = System.IO.Path.Combine ( + Environment.GetFolderPath (Environment.SpecialFolder.MyPictures), + Catalog.GetString ("Photos") + ); + if (!System.IO.Directory.Exists (default_storage_path)) { + System.IO.Directory.CreateDirectory (default_storage_path); + } + return default_storage_path; case EXPORT_EMAIL_SIZE: return 3; // medium size 640px case EXPORT_EMAIL_ROTATE: