aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog13
-rw-r--r--lib/ephy-file-helpers.c9
2 files changed, 15 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index 66c459270..7c9727ae6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2006-05-29 Christian Persch <chpe@cvs.gnome.org>
+
+ * lib/ephy-file-helpers.c: (ephy_file_launch_application),
+ (launch_desktop_item):
+
+ Fix launching of desktop files.
+
2006-05-16 Jean-François Rameau <jframeau@cvs.gnome.org>
* lib/ephy-node.h:
@@ -226,12 +233,6 @@
* data/ui/epiphany-ui.xml: Added a close item on the tab
right-click menu. Also reindented the XML file.
-2006-05-03 Takeshi AIHANA <takeshi.aihana@gmail.com>
-
- * help/ja/ja.po:
- Set translator-credit in Japanese translation.
- Fixes bug #339527.
-
2006-04-25 Christian Persch <chpe@cvs.gnome.org>
* src/ephy-tab.c: (ephy_tab_finalize), (ephy_tab_init),
diff --git a/lib/ephy-file-helpers.c b/lib/ephy-file-helpers.c
index c8548bf94..ef34c9b99 100644
--- a/lib/ephy-file-helpers.c
+++ b/lib/ephy-file-helpers.c
@@ -801,6 +801,7 @@ ephy_file_launch_application (GnomeVFSMimeApplication *application,
uris = g_list_prepend (NULL, uri);
+ /* FIXME multihead! */
screen = gdk_screen_get_default ();
envp = my_gdk_spawn_make_environment_for_screen (screen, NULL);
@@ -892,10 +893,15 @@ launch_desktop_item (const char *desktop_file,
GError **error)
{
GnomeDesktopItem *item = NULL;
+ GdkScreen *screen;
GList *uris = NULL;
char *canonical;
int ret = -1;
- char *envp[2] = { EPHY_UUID_ENVSTRING, NULL };
+ char **envp;
+
+ /* FIXME multihead! */
+ screen = gdk_screen_get_default ();
+ envp = my_gdk_spawn_make_environment_for_screen (screen, NULL);
item = gnome_desktop_item_new_from_file (desktop_file, 0, NULL);
if (item == NULL) return FALSE;
@@ -911,6 +917,7 @@ launch_desktop_item (const char *desktop_file,
g_list_foreach (uris, (GFunc) g_free, NULL);
g_list_free (uris);
+ g_strfreev (envp);
gnome_desktop_item_unref (item);
return ret;