Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • G GLib
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 880
    • Issues 880
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 46
    • Merge requests 46
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOME
  • GLib
  • Issues
  • #2249
Closed
Open
Created Nov 14, 2020 by areographe@areographe

gio trash has stopped working for me

Issue

If I open a terminal and type:

gio trash ~/trashtest/test.txt

The file test.txt is moved to Trash (i.e. ~/.local/share/Trash/files, or trash:///) successfully. However, if I try:

gio trash ~/trashtest/

I receive the error:

gio: file:///home/**myusername**/test: Trash portal failed on /home/**myusername**/test

I use Nemo on Cinnamon and I believe that it uses the same backend as gio trash to delete files - when I attempt to move a file or group of files to Trash, it works, but if I select a directory and use 'move to Trash', I get an error dialogue box with the same error: "Trash portal failed on chosen-directory-path"

This is on an Arch-based system where I have a / partition and a /home partition. To the best of my knowledge there are no symlinks or network mounts involved, only a separate partition on the same hard drive monuted at /home. I can confirm that the directories I've tested this on have had 'myusername:myusername' in terms of ownership and group, as does the ~/.local/share/Trash directory and all subdirectories. I have also tried running gksu nemo to use Nemo with elevated privileges, and the same error occurs, even when creating an empty folder in /root and then attempting to move it to Trash.

I have installed and tested the trash-cli utility and attempted to move some of the same directories to Trash using trash-cli, and it works without issues.

Moving a folder into ~/.local/share/Trash/files works, and if I then run gio list trash:// the folder appears in the output.

Summary

gio trash fails with an error if I try to trash any directory, but trashing any file(s) still work perfectly.

Edited Nov 14, 2020 by areographe
Assignee
Assign to
Time tracking