[ShellAppSystem] Don't use g_desktop_app_info_new
It doesn't fully support convert id to path. For example: multiply subdirs, "LegacyDir prefix" in .menu files... https://bugzilla.gnome.org/show_bug.cgi?id=614879
This commit is contained in:
parent
826e9c5dbf
commit
bd250e188b
@ -1311,7 +1311,6 @@ shell_app_info_launch_full (ShellAppInfo *info,
|
|||||||
GError **error)
|
GError **error)
|
||||||
{
|
{
|
||||||
GDesktopAppInfo *gapp;
|
GDesktopAppInfo *gapp;
|
||||||
char *filename;
|
|
||||||
GdkAppLaunchContext *context;
|
GdkAppLaunchContext *context;
|
||||||
gboolean ret;
|
gboolean ret;
|
||||||
ShellGlobal *global;
|
ShellGlobal *global;
|
||||||
@ -1333,11 +1332,13 @@ shell_app_info_launch_full (ShellAppInfo *info,
|
|||||||
}
|
}
|
||||||
else if (info->type == SHELL_APP_INFO_TYPE_ENTRY)
|
else if (info->type == SHELL_APP_INFO_TYPE_ENTRY)
|
||||||
{
|
{
|
||||||
gapp = g_desktop_app_info_new (shell_app_info_get_id (info));
|
/* Can't use g_desktop_app_info_new, see bug 614879 */
|
||||||
|
const char *filename = gmenu_tree_entry_get_desktop_file_path ((GMenuTreeEntry *)info->entry);
|
||||||
|
gapp = g_desktop_app_info_new_from_filename (filename);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
filename = shell_app_info_get_desktop_file_path (info);
|
char *filename = shell_app_info_get_desktop_file_path (info);
|
||||||
gapp = g_desktop_app_info_new_from_filename (filename);
|
gapp = g_desktop_app_info_new_from_filename (filename);
|
||||||
g_free (filename);
|
g_free (filename);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user