build-export: Don't fail desktpo validation for absolute pathnames in Exec=

This commit is contained in:
Alexander Larsson
2016-08-11 13:02:20 +02:00
parent 7431fff588
commit c978377dd1

View File

@@ -327,7 +327,18 @@ check_refs:
}
argv = g_strsplit (command, " ", 0);
exec_path = g_strconcat ("bin/", argv[0], NULL);
if (g_path_is_absolute (argv[0]))
{
if (g_str_has_prefix (argv[0], "/app/"))
exec_path = g_strdup (argv[0] + 5);
else
exec_path = g_strdup (argv[0]);
}
else
{
exec_path = g_strconcat ("bin/", argv[0], NULL);
}
bin_file = g_file_resolve_relative_path (files, exec_path);
if (!g_file_query_exists (bin_file, NULL))
{