handheld-daemon-ui: 3.2.3 -> 3.3.0 (#361609)
[NixPkgs.git] / pkgs / tools / cd-dvd / brasero / remove-symlink-check.patch
blob028ac12c4a037cfc6b7ac5a738d29a6f709d9064
1 diff --git a/libbrasero-burn/burn-plugin.c b/libbrasero-burn/burn-plugin.c
2 index f97bc5f..88e9d35 100644
3 --- a/libbrasero-burn/burn-plugin.c
4 +++ b/libbrasero-burn/burn-plugin.c
5 @@ -221,21 +221,10 @@ brasero_plugin_test_app (BraseroPlugin *plugin,
6 return;
9 - /* make sure that's not a symlink pointing to something with another
10 - * name like wodim.
11 - * NOTE: we used to test the target and see if it had the same name as
12 - * the symlink with GIO. The problem is, when the symlink pointed to
13 - * another symlink, then GIO didn't follow that other symlink. And in
14 - * the end it didn't work. So forbid all symlink. */
15 - if (g_file_test (prog_path, G_FILE_TEST_IS_SYMLINK)) {
16 - brasero_plugin_add_error (plugin,
17 - BRASERO_PLUGIN_ERROR_SYMBOLIC_LINK_APP,
18 - name);
19 - g_free (prog_path);
20 - return;
21 - }
22 + /* disable symlink check on nixos */
24 /* Make sure it's a regular file */
25 - else if (!g_file_test (prog_path, G_FILE_TEST_IS_REGULAR)) {
26 + if (!g_file_test (prog_path, G_FILE_TEST_IS_REGULAR)) {
27 brasero_plugin_add_error (plugin,
28 BRASERO_PLUGIN_ERROR_MISSING_APP,
29 name);