Merge pull request #664 from melizasw/master

Change file trash from a gvfs-trash system call to trash() from gio-2.0.
This commit is contained in:
Tony George 2020-11-15 12:27:51 +05:30 committed by GitHub
commit 1b0cd8cd3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -108,7 +108,7 @@ namespace TeeJee.FileSystem{
var file = File.new_for_path (file_path);
if (file.query_exists ()) {
Posix.system("gvfs-trash '%s'".printf(escape_single_quote(file_path)));
file.trash();
}
return true;
}

View File

@ -54,7 +54,7 @@ app-gtk:
Core/*.vala Gtk/*.vala Utility/*.vala Utility/Gtk/*.vala \
-o ${app_name}-gtk \
--pkg glib-2.0 --pkg gio-unix-2.0 --pkg posix \
--pkg gee-0.8 --pkg json-glib-1.0 \
--pkg gee-0.8 --pkg json-glib-1.0 --pkg gio-2.0 \
--pkg gtk+-3.0 --pkg vte-2.91 $(xapp_pkg)
app-console:
@ -65,7 +65,7 @@ app-console:
Core/*.vala Utility/*.vala Utility/Gtk/*.vala Console/*.vala \
-o ${app_name} \
--pkg glib-2.0 --pkg gio-unix-2.0 --pkg posix \
--pkg gee-0.8 --pkg json-glib-1.0 \
--pkg gee-0.8 --pkg json-glib-1.0 --pkg gio-2.0 \
--pkg gtk+-3.0 --pkg vte-2.91 $(xapp_pkg)
manpage: