diff options
author | Carlos Soriano <csoriano@gnome.org> | 2016-11-04 11:47:39 +0100 |
---|---|---|
committer | Carlos Soriano <csoriano@gnome.org> | 2016-11-21 15:56:38 +0100 |
commit | 5db7a2952a8091cb11ec74e0fd87cd1814252da2 (patch) | |
tree | 3f95d38e6bd1f90ffd858786a370d961076e351e /src/nautilus-directory.h | |
parent | 344e59c7326912562b18a0e3c906e2a5e0ea56fc (diff) | |
download | nautilus-5db7a2952a8091cb11ec74e0fd87cd1814252da2.tar.gz |
mime-actions: support admin backend
Until now Nautilus was not able to handle files where the user had
no permissions. An error was reported.
The only way for a user to handle those files were to start Nautilus
with sudo, which is something that shoudl be avoided for security
reasons.
On Wayland, is not even possible to launch an application with sudo,
so this is no longer available and therefor no way to handle files
with no permissions.
On 3.22 gvfs added an admin backend with integration with Polkit,
so a file withouth permissions can be accessed using this backend
if the user has the root password.
Add support for the admin backend in Nautilus, where a file will
be opened using it if cannot be read.
There still work to do, basically implement the operations with
this backend too and refactor the code to be able to open from
nautilus application command line also a file withouth permissions.
https://bugzilla.gnome.org/show_bug.cgi?id=773937
Diffstat (limited to 'src/nautilus-directory.h')
-rw-r--r-- | src/nautilus-directory.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nautilus-directory.h b/src/nautilus-directory.h index dc8c73253..68a398ef4 100644 --- a/src/nautilus-directory.h +++ b/src/nautilus-directory.h @@ -225,6 +225,7 @@ gboolean nautilus_directory_is_local_or_fuse (NautilusDirector gboolean nautilus_directory_is_in_trash (NautilusDirectory *directory); gboolean nautilus_directory_is_in_recent (NautilusDirectory *directory); +gboolean nautilus_directory_is_in_admin (NautilusDirectory *directory); gboolean nautilus_directory_is_remote (NautilusDirectory *directory); /* Return false if directory contains anything besides a Nautilus metafile. |