mirror of https://gitee.com/openkylin/glib2.0.git
fix-trash-issue-in-data
=================================================================== Gbp-Pq: Name fix-trash-issue-in-data.patch
This commit is contained in:
parent
a70393599e
commit
0304b96160
|
@ -2039,7 +2039,7 @@ g_local_file_trash (GFile *file,
|
|||
g_free (path);
|
||||
}
|
||||
|
||||
is_local_file_in_usershare = g_str_has_prefix(local->filename, "/data/usershare");
|
||||
is_local_file_in_usershare = g_str_has_prefix(local->filename, "/data") && g_file_test ("/data/usershare", G_FILE_TEST_EXISTS);
|
||||
if (file_stat.st_dev == home_stat.st_dev && !is_local_file_in_usershare)
|
||||
{
|
||||
is_homedir_trash = TRUE;
|
||||
|
|
Loading…
Reference in New Issue