From 6269b4651b778e1bdc125a222317e4b558ca14b1 Mon Sep 17 00:00:00 2001 From: Diego Escalante Urrelo Date: Mon, 8 Jan 2007 23:01:05 +0000 Subject: Check the result of ephy_file_launch_desktop_file () so if it fails we try 2007-01-08 Diego Escalante Urrelo * src/popup-commands.c: (background_download_completed) Check the result of ephy_file_launch_desktop_file () so if it fails we try an alternative naming of the background capplet: gnome-background. This is seen in fedora. Bug #387206, which is actually caused by bugzilla.redhat.com #201867. svn path=/trunk/; revision=6798 --- src/popup-commands.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/popup-commands.c b/src/popup-commands.c index 7043f6496..c6dcaf969 100644 --- a/src/popup-commands.c +++ b/src/popup-commands.c @@ -284,7 +284,13 @@ background_download_completed (EphyEmbedPersist *persist) g_object_unref (persist); /* open the "Background Properties" capplet */ - ephy_file_launch_desktop_file ("background.desktop", bg, user_time); + if (!ephy_file_launch_desktop_file ("background.desktop", bg, user_time)) + { + /* If the above try didn't work, then we try the Fedora name. + * This is a fix for #387206, but is actually a workaround for + * bugzilla.redhat.com #201867 */ + ephy_file_launch_desktop_file ("gnome-background.desktop", bg, user_time); + } } void -- cgit