-
Notifications
You must be signed in to change notification settings - Fork 362
Unable to delete file (need gvfs-trash) #1237
Comments
Had the same issue. Fixed by setting env var for |
Same issue on antergos archlinux I have the env variables :
but always the same problem |
If you want to persist an env var you can add it to your shell's initialization script e.g. .bashrc |
Don't work also |
@lefuturiste does
|
work well |
@lefuturiste what version of Atom are you running ( @wyqydsyq do you have |
Atom : 1.28.0 |
@rsese Atom : 1.30.0 |
It seems that gvfs updates and dropped gvfs-trash, instead we should use gio trash now? Temp workaround is to create a script as a warpper:
Fill it with content:
and then:
|
This is an Electron issue: electron/electron#15011 |
perhaps this is a slight improvement and a little more copy pasta friendly:
|
I had the same problem in my MANJARO, this worked for me too |
someone checked this? https://askubuntu.com/questions/288513/cant-move-files-to-the-trash |
@vmvwebworks this solution worked for me. If atom won't let you throw things in the trash, it might be a permission issues. I used
and now there is no issue. |
Shouldn't this be closed? Correctly setting an environment variable fixes it completely. Moreover, if you wanted this to be the default behavior, for the user disliking direct manipulation of the environment, it's an upstream issue in any case. |
I don't think requiring users to set env vars so this functionality works on common operating systems is reasonable. If this extension is capable of returning an error when the current default value doesn't work, it should also be capable of attempting to set the env var suggested here automatically as a fallback. Additionally, the |
I'm having this issue since Atom 1.39.0, however it's the other way around for me. |
Atom : 1.39.1 What would be a more long-term solution? (The other solutions did not work) |
Same issue. Since the recent atom upgrade running on ubuntu 16.04 it complains about missing gvfs-trash, even though the file does in fact exist. I used the |
Linux Mint 18.3 x64 I have noted all the comments above (which have been apt) and particularly tried/noted the ones detailed below:
This issue has been surprisingly difficult to resolve. |
Uninstall Atom and use VSCode instead |
Why this is STILL an issue? |
ubuntu 19.10 editing files on a sshfs mount trying to delete directory (move to trash) on a local filesystem (~/home/XX) : OK trying to delete directory (move to trash) on a mount filesystem (sshfs): KO The following file couldn't be moved to the trash. blahblah Is gvfs-trash installed? outside atom: it finds the trash but... the pb seems to be gio |
For any googlers looking: |
There is an other issue that hasn't been addressed here, if you are working from the default apache installation,
NOTE: Trashing on system internal mounts is not supported so I created a new script for
Probably not the best idea, but given that gvfs-trash is deprecated, I am assuming it should be ok.
|
I had the same issue and none of the solutions above had worked. |
Seeing the same error when trying to delete a folder while running Atom via Flatpak on Arch Linux. I've tried ELECTRON_TRASH=gio atom .
export ELECTRON_TRASH=gio && atom .
flatpak override --user --env="ELECTRON_TRASH=gio" io.atom.Atom no luck with any of the above. The odd thing is, I'm able to delete individual files within a folder. Also, I'm using Flatpak because I use |
When trying to delete a file, I get an error about
gvfs-trash
, I havegvfs
installed, but there is nogvfs-trash
on my distro:There should really be a fallback for this, say, using the standard
rm
command to delete files ifgvfs-trash
is not available.The text was updated successfully, but these errors were encountered: