Trash not found in Administrator Mode

Bug #1389490 reported by Ezra Sharp
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Files
Confirmed
Low
Jeremy Wootten

Bug Description

Open a few Files window as Administrator, enter password..

Then goto the Trash form the short-cuts on the left. You'll get a window filler saying "This folder does not exist".

So empowered users can't easily empty the trash. So any files/folders that are deleted goto a place the user can't get to. And as they were deleted as Root once they go back to a normal Files window they cant empty the trash there either.

This came up as my /boot filled up and I used Administrator mode in Files to remove some old kernels, but it took me quite awhile to figure out why the files were gone, but no space was freed up.

ProblemType: Bug
DistroRelease: elementary OS 0.3
Package: pantheon-files 0.1.5.1+r1632+pkg35~ubuntu0.3.1 [origin: LP-PPA-elementary-os-daily]
ProcVersionSignature: Ubuntu 3.13.0-39.66-generic 3.13.11.8
Uname: Linux 3.13.0-39-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.14.1-0ubuntu3.5
Architecture: amd64
CrashDB: pantheon_files
CurrentDesktop: Pantheon
Date: Wed Nov 5 16:05:49 2014
ExecutablePath: /usr/bin/pantheon-files
GsettingsChanges:

InstallationDate: Installed on 2014-08-18 (79 days ago)
InstallationMedia: elementary OS 0.3 "Freya" - Daily amd64 (20140810)
ProcEnviron:
 LANGUAGE=en_NZ:en
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_NZ.UTF-8
 SHELL=/bin/bash
SourcePackage: pantheon-files
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Ezra Sharp (nicekiwi) wrote :
Revision history for this message
Ezra Sharp (nicekiwi) wrote :
Revision history for this message
Jeremy Wootten (jeremywootten) wrote :

This also happens with Nautilus. In Thunar, the trash icon is hidden when run as root.

Revision history for this message
Jeremy Wootten (jeremywootten) wrote :
Changed in pantheon-files:
status: New → Confirmed
Revision history for this message
Jeremy Wootten (jeremywootten) wrote :

I think this is a problem with gvfs, which does not return the user's trash directory when running as root through sudo, rather than with Files per se. A possible workaround would be to hide the real trash shortcut in the sidebar and substitute a direct link to the sudouser's trash directory. The real trash shortcut should probably be hidden anyway if it does not work.

Changed in pantheon-files:
importance: Undecided → Low
assignee: nobody → Jeremy Wootten (jeremywootten)
Revision history for this message
Radical Raccoon (radicalraccoon) wrote :

You could write a simple shell script, drop it in '/usr/bin', and run it as root using sudo from the terminal to deal with this.
That's what I've done in order to deal with the files and such that I delete as root.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.