diff options
author | monsta <[email protected]> | 2017-09-26 17:51:47 +0300 |
---|---|---|
committer | lukefromdc <[email protected]> | 2017-09-29 14:09:29 -0400 |
commit | cfb9e30e4137274ff0ae7de154ce543b9f67519c (patch) | |
tree | 6d8309a7ba5739661d8992fd9b4c1d44f1dcb6a4 /mate-panel/libpanel-util/panel-launch.c | |
parent | c13f02a05b80d240575d6ea58362c539cd9c00c2 (diff) | |
download | mate-panel-cfb9e30e4137274ff0ae7de154ce543b9f67519c.tar.bz2 mate-panel-cfb9e30e4137274ff0ae7de154ce543b9f67519c.tar.xz |
make file/folder launchers work again
fixes https://github.com/mate-desktop/mate-panel/issues/590
reverts a part of 7ee450758e4f2bee13aa8ff967a5795a6dcdc91f
Diffstat (limited to 'mate-panel/libpanel-util/panel-launch.c')
-rw-r--r-- | mate-panel/libpanel-util/panel-launch.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/mate-panel/libpanel-util/panel-launch.c b/mate-panel/libpanel-util/panel-launch.c index ab330888..66632dc9 100644 --- a/mate-panel/libpanel-util/panel-launch.c +++ b/mate-panel/libpanel-util/panel-launch.c @@ -163,23 +163,29 @@ panel_app_info_launch_uri (GDesktopAppInfo *appinfo, } gboolean -panel_app_info_launch (GDesktopAppInfo *appinfo, +panel_launch_key_file (GKeyFile *keyfile, GList *uri_list, GdkScreen *screen, const gchar *action, GError **error) { + GDesktopAppInfo *appinfo; gboolean retval; - g_return_val_if_fail (appinfo != NULL, FALSE); + g_return_val_if_fail (keyfile != NULL, FALSE); g_return_val_if_fail (GDK_IS_SCREEN (screen), FALSE); g_return_val_if_fail (error == NULL || *error == NULL, FALSE); + appinfo = g_desktop_app_info_new_from_keyfile (keyfile); + if (appinfo == NULL) + return FALSE; + retval = panel_app_info_launch_uris (appinfo, uri_list, screen, action, gtk_get_current_event_time (), error); + g_object_unref (appinfo); return retval; } |