| GIO Reference Manual | ||||
|---|---|---|---|---|
Desktop file based GAppInfoDesktop file based GAppInfo — Application information from desktop files |
#include <gio/gdesktopappinfo.h>
GDesktopAppInfo;
GDesktopAppInfo* g_desktop_app_info_new_from_filename
(const char *filename);
GDesktopAppInfo* g_desktop_app_info_new (const char *desktop_id);
gboolean g_desktop_app_info_get_is_hidden (GDesktopAppInfo *info);
void g_desktop_app_info_set_desktop_env (const char *desktop_env);
typedef struct _GDesktopAppInfo GDesktopAppInfo;
Information about an installed application from a desktop file.
GDesktopAppInfo* g_desktop_app_info_new_from_filename (const char *filename);
Creates a new GDesktopAppInfo.
|
a string containing a file name. |
Returns : |
a new GDesktopAppInfo or NULL on error.
|
GDesktopAppInfo* g_desktop_app_info_new (const char *desktop_id);
Creates a new GDesktopAppInfo.
|
the desktop file id |
Returns : |
a new GDesktopAppInfo, or NULL if no desktop file with that id
|
gboolean g_desktop_app_info_get_is_hidden (GDesktopAppInfo *info);
A desktop file is hidden if the Hidden key in it is set to True.
|
a GDesktopAppInfo. |
Returns : |
TRUE if hidden, FALSE otherwise.
|
void g_desktop_app_info_set_desktop_env (const char *desktop_env);
Sets the name of the desktop that the application is running in.
This is used by g_app_info_should_show() to evaluate the
OnlyShowIn and NotShowIn
desktop entry fields.
The Desktop Menu specification recognizes the following:
| GNOME |
| KDE |
| ROX |
| XFCE |
| Old |
Should be called only once; subsequent calls are ignored.
|
a string specifying what desktop this is |