Comments (4)
You're supposed to put the entire trash directory rather than specifically the info subdirectory
Tried this and still getting the "can not find trash information directory" error
Can you try, from a root shell, to echo $XDG_DATA_HOME and echo $HOME?
- XDG_DATA_HOME = empty
- HOME = /root
Note that autotrash is available both on pip (distro-agnostic) and on Ubuntu bionic
Ah good to know! I originally heard about autotrash in a blog post which must've recommended snap so I didn't realize there were other options. I'm on Ubuntu focal, but the pip install worked great. It's v0.4.4 and has all the expected behavior for cron which the unofficial snap was missing (proper interpretation of -T
flag and correct default /root/.local/share/Trash/info
). Working as expected now, thanks!
from autotrash.
Also the --install
flag for automatic systemd is no longer supported, so cron is my only option to automate this
from autotrash.
Wrong install location as of v0.1.5 (should be /snap/bin/autotrash)
Snap isn't even officially supported. Note that the only snap for autotrash
is https://snapcraft.io/autotrash-unofficial, which is clearly unofficial.
Looks at root's trash instead of a user's
It checks as the current user, so if you're root (which it seems like you are from your prompt) it'll check as root. There is an issue here though, as root's home is /root
rather than /home/root
, so that should be fixed.
EDIT: On my system I don't get this issue. Might be an issue with the snap version (it is quite old). Can you try, from a root shell, to echo $XDG_DATA_HOME
and echo $HOME
?
Still errors even with explicit -T that is confirmed to exist
You're supposed to put the entire trash directory (so /home/addison/.local/share/Trash
in your case) rather than specifically the info
subdirectory.
EDIT: I don't get an issue with either on my system, so maybe this is also problem with the snap version. Note that autotrash
is available both on pip
(distro-agnostic) and on Ubuntu bionic.
from autotrash.
I've looked back through all of the git history and cannot find anything that would make it check /home/root
instead of just /root
, but I did find it in the unofficial snapcraft YAML, so this is definitely an issue with that instead. Additionally, the snap seems to be quite old (says 0.1.5 but since it was released on May 2020 it might be 0.3.0? I'm kind of confused with what's going on there since 0.1.5 was released in 2011), so you should probably update to the latest version (0.4.4) if possible.
The package on Ubuntu bionic also says it's from 0.1.5, so it's probably best to not use it and stick with pip
.
I think that the situation with 0.1.5 might be that it's the latest version to support being run on python2? Not sure but that would make sense since the Ubuntu bionic package depends on python>=2.5 and the unofficial snap says that it's made "for programs that disappeared from Ubuntu repositories because they are not compatible with versions of packages/libraries, for example programs made in Python 2."
from autotrash.
Related Issues (20)
- AUR package link not working: 404 - Page Not Found
- autotrash: error: no such option: -t HOT 4
- run at startup? HOT 1
- Date parse error for info files HOT 11
- Techincal question HOT 4
- Installing on Linux Mint 20 / Ubuntu 20.04 LTS (Focal Fossa) HOT 5
- Syntax error def read_datetime(value: str) -> datetime.datetime: HOT 2
- ValueError: unconverted data remains: .405Z [Linux Mint 19.3] HOT 2
- [Suggestion] Add to AUR HOT 3
- Arrow dependency unnecessary? HOT 1
- DeprecationWarning: SafeConfigParser HOT 6
- I can't install it. HOT 4
- Documentation suggestions
- Consider creating Snap package HOT 9
- Option to purge trash of all users when running as root
- PackageNotFoundError not ignored when looking for package version HOT 1
- Ubuntu (and Debian? ) install instruction issues HOT 2
- Please make a flatpak package HOT 2
- Use $XDG_CONFIG_HOME rather than assuming ~/.config
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from autotrash.