nixpkgs/pkgs/desktops/gnome/core/gnome-software/fix-paths.patch

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
483 B
Diff
Raw Normal View History

2018-03-05 05:18:53 +03:00
--- a/src/gs-language.c
+++ b/src/gs-language.c
@@ -95,7 +95,7 @@
g_autoptr(GMarkupParseContext) context = NULL;
/* find filename */
- filename = g_build_filename (DATADIR, "xml", "iso-codes", "iso_639.xml", NULL);
2018-03-15 07:27:44 +03:00
+ filename = g_build_filename ("@isocodes@", "share", "xml", "iso-codes", "iso_639.xml", NULL);
2018-03-05 05:18:53 +03:00
if (!g_file_test (filename, G_FILE_TEST_EXISTS)) {
g_free (filename);
filename = g_build_filename ("/usr", "share", "xml", "iso-codes", "iso_639.xml", NULL);