|
|
2009-10-12
, 10:23
|
|
Posts: 432 |
Thanked: 645 times |
Joined on Mar 2009
|
#3
|
gint hildon_mime_open_file (DBusConnection *con,
const gchar *file);
|
|
2009-10-13
, 10:39
|
|
|
Posts: 664 |
Thanked: 160 times |
Joined on Jul 2008
@ Australia
|
#4
|
I'm writing a small desktop applet from where I need to launch the n900's image-viewer application with the selected image and I've just installed final 5.0 SDK as well. Failing to launch image-viewer giving a cmd from my program, I installed osso-xterm to check if the cmd works but I couldn't launch it even from xterm with this cmd "/usr/bin/image-viewer" or just "image-viewer". I was wondering how is it possible to achieve this. Below is the code snippet I've used and running it in the debian system (outside scratchbox) using "eog -f imagepath.jpg" runs fine:
static gboolean openDefaultImageViewer(GtkWidget *event_box, GdkEventButton *event, Data *data){ gint ret; gchar *filepath = (gchar *)g_list_nth_data(data->list, data->cur_image); gchar *cmd = g_strconcat("eog -f ", filepath, NULL); ret = g_spawn_command_line_async(cmd, NULL); g_free(cmd); return ret; }