Commit c0643470 authored by Felix Riemann's avatar Felix Riemann

[postr] Use GIO to determine image file path

Postr currently only accepts local files. Using GIO to get the local
file path of the images has the advantage that GIO FUSE mounts can be
used. Also quotes were added to work with files having spaces in their
path. Fixes bgo#592984.
parent 7ccf82be
2009-08-25 Felix Riemann <>
* plugins/postr/eog-postr-plugin.c:
Use GIO to determine the images' file path. This makes it possible to
use files from GIO FUSE mounts. Fixes bug #592984.
2009-08-25 Felix Riemann <>
* plugins/exif-display/eog-exif-display-plugin.c:
......@@ -34,8 +34,17 @@ postr_cb (GtkAction *action,
for (i = g_list_first (images); i; i = i->next) {
EogImage *image = (EogImage *) i->data;
GFile *imgfile;
gchar *imgpath;
cmd = g_strconcat (cmd, eog_image_get_uri_for_display (image), " ", NULL);
imgfile = eog_image_get_file (image);
imgpath = g_file_get_path (imgfile);
if (G_LIKELY (imgpath != NULL))
cmd = g_strconcat (cmd, "\"", imgpath, "\"", " ", NULL);
g_free (imgpath);
g_object_unref (imgfile);
g_spawn_command_line_async (cmd, NULL);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment