Back to index

bamf  0.2.120
Functions
desktop-file-launcher.c File Reference
#include <stdio.h>
#include <gtk/gtk.h>
#include <glib.h>
#include <gio/gdesktopappinfo.h>

Go to the source code of this file.

Functions

int main (int argc, char **argv)

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 25 of file desktop-file-launcher.c.

{
       gtk_init (&argc, &argv);

       GAppInfo *appInfo = G_APP_INFO (g_desktop_app_info_new_from_filename (argv [1]));

       GError *error;
       g_app_info_launch (appInfo, NULL, NULL, &error);

       g_print ("End");

       return 0;
}