fix-trash-issue-in-data

===================================================================

Gbp-Pq: Name fix-trash-issue-in-data.patch
This commit is contained in:
Debian GNOME Maintainers 2022-06-29 16:00:15 +08:00 committed by Yue-Lan
parent a70393599e
commit 0304b96160
1 changed files with 1 additions and 1 deletions

View File

@ -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;