Re: What functions should I use in GTK to open a file(such as text or image ) with default application?



Le Thu, 25 Sep 2008 09:32:35 +0800,
"haitao_yang foxitsoftware com" <haitao_yang foxitsoftware com> a
écrit :

> Hi,
> 	I have two problems: 1)How can I open a file(such as text or
> image ) with default application? 2)How can I set my program as
> default application to open specific type of file? I wonder if GTK
> provide some function to carry out such operations? And what
> preference materials can I look for? (something like windows function
> ShellExecuteA(NULL, "open",.....))
> 	Thanks advance!

With xdg-open :)  There are variants for specific desktops: gnome-open,
exo-open, and kfmclient.

xdg-open is on top of them.  It is provided with the xdg-utils.

Mike


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]