#include "rox-clib.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <gtk/gtk.h>
#include "mime_handler.h"
#include "rox.h"
#include "rox_debug.h"
#include "mime.h"
#include "appinfo.h"
Functions | |
void | rox_mime_install_from_appinfo (void) |
This provides the facility for a ROX application to install itself as the handler for a set of MIME types in a standardized way. The user is asked to confirm any changes to their set up.
void rox_mime_install_from_appinfo | ( | void | ) |
Scan the applications AppInfo.xml file for CanRun and CanThumbnail declarations. If any are found they are reported to the user who is asked whether the application can be set as the current handler for those types.
Example AppInfo.xml (from VideoThumbnail):
<AppInfo> ... <CanThumbnail> <MimeType type="video/mpeg"/> <MimeType type="video/quicktime"/> <MimeType type="video/x-msvideo"/> </CanThumbnail> </AppInfo>