[glib] gosxappinfo: Fix launching default applications
- From: Patrick Griffis <pgriffis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] gosxappinfo: Fix launching default applications
- Date: Thu, 30 Mar 2017 14:11:02 +0000 (UTC)
commit 392bd59eb8ec94cfdda4891dc908c5a0556e00dd
Author: Patrick Griffis <tingping tingping se>
Date: Wed Mar 15 01:21:09 2017 -0400
gosxappinfo: Fix launching default applications
https://bugzilla.gnome.org/show_bug.cgi?id=734946
gio/gosxappinfo.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gio/gosxappinfo.c b/gio/gosxappinfo.c
index 24c7bc4..564ae2c 100644
--- a/gio/gosxappinfo.c
+++ b/gio/gosxappinfo.c
@@ -274,7 +274,8 @@ create_urlspec_for_appinfo (GOsxAppInfo *info,
LSLaunchURLSpec *urlspec = g_new0 (LSLaunchURLSpec, 1);
gchar *app_cstr = g_osx_app_info_get_filename (info);
- urlspec->appURL = create_url_from_cstr (app_cstr, are_files);
+ /* Strip file:// from app url but ensure filesystem url */
+ urlspec->appURL = create_url_from_cstr (app_cstr + 7, TRUE);
urlspec->launchFlags = kLSLaunchDefaults;
urlspec->itemURLs = create_url_list_from_glist (uris, are_files);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]