mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-06-01 18:30:05 +02:00
gosxappinfo: Fix launching default applications
https://bugzilla.gnome.org/show_bug.cgi?id=734946
This commit is contained in:
parent
deab643651
commit
392bd59eb8
@ -274,7 +274,8 @@ create_urlspec_for_appinfo (GOsxAppInfo *info,
|
|||||||
LSLaunchURLSpec *urlspec = g_new0 (LSLaunchURLSpec, 1);
|
LSLaunchURLSpec *urlspec = g_new0 (LSLaunchURLSpec, 1);
|
||||||
gchar *app_cstr = g_osx_app_info_get_filename (info);
|
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->launchFlags = kLSLaunchDefaults;
|
||||||
urlspec->itemURLs = create_url_list_from_glist (uris, are_files);
|
urlspec->itemURLs = create_url_list_from_glist (uris, are_files);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user