diff -u gnome-screensaver-2.24.0/debian/changelog gnome-screensaver-2.24.0/debian/changelog --- gnome-screensaver-2.24.0/debian/changelog +++ gnome-screensaver-2.24.0/debian/changelog @@ -1,3 +1,10 @@ +gnome-screensaver (2.24.0-0ubuntu6.1~tormod) jaunty; urgency=low + + * debian/patches/10_allow_full_path.patch: Allow full path in + desktop files. + + -- Tormod Volden Sat, 13 Jun 2009 18:13:42 +0200 + gnome-screensaver (2.24.0-0ubuntu6) jaunty; urgency=low * debian/patches/09_include_in_xfce.patch: Don't hide the screensaver only in patch2: unchanged: --- gnome-screensaver-2.24.0.orig/debian/patches/10_allow_full_path.patch +++ gnome-screensaver-2.24.0/debian/patches/10_allow_full_path.patch @@ -0,0 +1,22 @@ +diff -Nur -x '*.orig' -x '*~' gnome-screensaver-2.24.0/src/gs-theme-manager.c gnome-screensaver-2.24.0.new/src/gs-theme-manager.c +--- gnome-screensaver-2.24.0/src/gs-theme-manager.c 2009-06-13 18:05:05.000000000 +0200 ++++ gnome-screensaver-2.24.0.new/src/gs-theme-manager.c 2009-06-13 18:07:35.000000000 +0200 +@@ -75,6 +75,18 @@ + { + int i; + ++ /* if a full path is given, just check the file */ ++ if (*command == '/' ) { ++ char *path; ++ ++ path = g_strdup (command); ++ if (g_file_test (path, G_FILE_TEST_IS_EXECUTABLE) ++ && ! g_file_test (path, G_FILE_TEST_IS_DIR)) ++ return path; ++ else ++ return NULL; ++ } ++ + for (i = 0; known_engine_locations [i]; i++){ + char *path; +