mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-06 16:08:43 +02:00
Add G_APP_INFO_CREATE_SUPPORTS_URIS flag
2008-01-29 Alexander Larsson <alexl@redhat.com> * gappinfo.h: * gdesktopappinfo.c: Add G_APP_INFO_CREATE_SUPPORTS_URIS flag svn path=/trunk/; revision=6418
This commit is contained in:
committed by
Alexander Larsson
parent
98102273d9
commit
6ff29c1dea
@@ -1508,7 +1508,10 @@ g_app_info_create_from_commandline (const char *commandline,
|
||||
info->terminal = flags & G_APP_INFO_CREATE_NEEDS_TERMINAL;
|
||||
info->startup_notify = FALSE;
|
||||
info->hidden = FALSE;
|
||||
info->exec = g_strconcat (commandline, " %f", NULL);
|
||||
if (flags & G_APP_INFO_CREATE_SUPPORTS_URIS)
|
||||
info->exec = g_strconcat (commandline, " %u", NULL);
|
||||
else
|
||||
info->exec = g_strconcat (commandline, " %f", NULL);
|
||||
info->comment = g_strdup_printf (_("Custom definition for %s"), info->name);
|
||||
info->nodisplay = TRUE;
|
||||
info->binary = binary_from_exec (info->exec);
|
||||
|
Reference in New Issue
Block a user