ubuntu - open file in system default application in C -


i'm writing simple http program downloads file,maybe .html, .jpg or others
, how can open file using system default application in c code
program on ubuntu12.10 , based on gtk3.x
sorry english , in advance.

i know that

gfile *g_file_new_for_path(const gchar *path);  gappinfo *g_file_query_default_handler(gfile *file,gcancellable *cancellable,gerror **error);  gboolean g_app_info_launch(gappinfo *appinfo,glist *files,gapplaunchcontext *launch_context,gerror **error); 

create gfile , default handler,then launch it
g_app_info_launch return true if success


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -