You are not logged in.

#1 2018-09-27 17:21:19

SampsonCrowley
Member
Registered: 2017-07-21
Posts: 9

[SOLVED] Atom cannot delete files after latest update

Using gnome wayland for more than a year and never getting this error before updating.. currently getting the Is gvfs-trash installed? error

the Atom wiki page (https://wiki.archlinux.org/index.php/atom#Unable_to_delete_files) says that atom defaults to gvfs-trash, but there is no gvfs-trash package in the pacman repos. didn't search the AUR for it because that seems like it shouldn't be necessary.

pacman -Ss gvfs returns:

extra/gvfs 1.38.1-1 (gnome) [installed]
    Virtual filesystem implementation for GIO
extra/gvfs-afc 1.38.1-1 (gnome) [installed]
    Virtual filesystem implementation for GIO (AFC backend; Apple mobile devices)
extra/gvfs-goa 1.38.1-1 (gnome) [installed]
    Virtual filesystem implementation for GIO (Gnome Online Accounts backend; cloud storage)
extra/gvfs-google 1.38.1-1 (gnome) [installed]
    Virtual filesystem implementation for GIO (Google Drive backend)
extra/gvfs-gphoto2 1.38.1-1 (gnome) [installed]
    Virtual filesystem implementation for GIO (gphoto2 backend; PTP camera, MTP media player)
extra/gvfs-mtp 1.38.1-1 (gnome) [installed]
    Virtual filesystem implementation for GIO (MTP backend; Android, media player)
extra/gvfs-nfs 1.38.1-1 (gnome) [installed]
    Virtual filesystem implementation for GIO (NFS backend)
extra/gvfs-smb 1.38.1-1 (gnome) [installed]
    Virtual filesystem implementation for GIO (SMB/CIFS backend; Windows client)

looking for electron env variables

printenv | grep ELECTRON

returns nothing

running gvfs-trash returns gvfs-trash: command not found

Last edited by SampsonCrowley (2018-09-27 19:46:09)

Offline

#2 2018-09-27 19:14:31

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: [SOLVED] Atom cannot delete files after latest update

https://wiki.archlinux.org/index.php/Pkgfile

Since gvfs-trash is a *command* and not a *package*, it makes sense that it would not necessarily also be by sheer coincidence a package too.

$ pkgfile -v gvfs-trash
extra/gvfs 1.36.2-3	/usr/bin/gvfs-trash
$ pacman -Si electron| grep Optional
Optional Deps   : gvfs: file deletion support (gvfs-trash)

Hmm, pkgfile database is out of date.

$ sudo pkgfile -u
:: Updating 11 repos...
[...]
:: waiting for 1 process to finish repacking repos...
$ pkgfile -v gvfs-trash

Suddenly disappeared.

Oh well, turns out my usual advice is not so hot. Well, in a way it is, but all it really confirms is the command doesn't exist... Nevertheless, your first reaction should have been to see the optdepends for atom and its dependencies like electron, which at least claimed to have the solution.

Anyway. This has been deprecated for a super long time, well, turns out they finally deleted it entirely:
https://gitlab.gnome.org/GNOME/gvfs/blo … 0/NEWS#L36
https://gitlab.gnome.org/GNOME/gvfs/com … 02afc58f6f

On the other hand, electron should be using gio natively, as per https://github.com/electron/electron/pull/9518

... if and only if you set the environment variable $ELECTRON_TRASH to be equal to "gio".

How entirely dreary. P.S. Electron software sucks.

EDIT:

I've updated the wiki: Atom#Unable_to_delete_files (which *always* described this problem, but now also mentions gvfs-trash as not existing).

I've also left a comment on the electron PR, since this should be default.

Last edited by eschwartz (2018-09-27 19:37:21)


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#3 2018-09-27 19:45:49

SampsonCrowley
Member
Registered: 2017-07-21
Posts: 9

Re: [SOLVED] Atom cannot delete files after latest update

Is the condescending tone really necessary? sorry I was unaware that gvfs-trash was a only command and not a package.
if I knew it was only a command and never existed as it's own package, I wouldn't have needed to come here for help.
Sorry I tried searching for a package, and putting that in my question so that you knew I looked for it. If you read to the bottom, you'll see i ALSO tried it as a *command* and not just searched for a *package*

next time i'll try to remember that pacman -Fs exists. forgot about that one, thanks for the reminder.

I happen to really like the features that atom provides as a software editor an don't need your opinion on it. Atom and vim are the two editors that I find worth my time

Offline

#4 2018-09-27 20:19:51

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: [SOLVED] Atom cannot delete files after latest update

SampsonCrowley wrote:

I happen to really like the features that atom provides as a software editor an don't need your opinion on it. Atom and vim are the two editors that I find worth my time

I love vim, but I'm not really sure how anyone could say it in the same sentence as atom. tongue
They're kind of polar opposites.

Anyway here's to hoping upstream electron can finally stop using deprecated gvfs commands. If no one responds to my comment on the electron pull request, you could always open a fresh bug report for it.


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

Board footer

Powered by FluxBB