mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-02-12 12:50:51 +00:00
0eb6e7632bd4e698251efd3e5ae78a86527abae9
trash-rs support on Android
- Force-enable `trash-rs` and force the 'd' key to work to move files to `/data/data/com.termux/files/home/.local/share/Trash/files`, i.e. `$HOME/.local/share/Trash/files` - Since for some reason `libc::getmntent()` does not exist in Rust for Android, it is necessary to make a dirty implementation of a function within `trash-rs` that is otherwise unimplemented for Android by avoiding the use of `getmntent()`. This implementation is not a fully proper way to detect mount points on Android, but it is sufficient to allow sending files to Trash to work without failure. It assumes that `/data` is mounted (since without `/data`, Termux cannot be running anyway), which allows the Termux home folder Trash to work (`/data/data/com.termux/files/home/.local/share/Trash/files`), and also pretends that `/storage/emulated/0` is a mounted filesystem so that Trashing files from `/sdcard` or `/storage/emulated/0` sends them to the Android system Home folder Trash (since, unlike the case of the Termux home folder, `/storage/emulated` is the actual mountpoint, but that folder does not grant permission for users to write to even if the user has used `termux-setup-storage`, only `/storage/emulated/0` does) - Has has been tested and confirmed to work good enough to suceessfully move files to trash in `yazi` on Samsung Galaxy A70 SM-A705FN with LineageOS 20 Android 13 SELinux Enabled
Termux packages for pacman - official git repo mirror
Code for connecting repository:
main:
[main]
Server = https://service.termux-pacman.dev/main/$arch
x11:
[x11]
Server = https://service.termux-pacman.dev/x11/$arch
root:
[root]
Server = https://service.termux-pacman.dev/root/$arch
Other information:
- Android support: 7+
- Architecture support: all (aarch64, arm, x86_64, i686)
- Signature: termux-pacman organization gpg key
- Powered by aws
- Root repository: https://github.com/termux/termux-packages
- Organization maintaining the root repository: termux
Description
Languages
Shell
80.5%
C
12.7%
C++
2.6%
CMake
1%
Python
0.8%
Other
2.2%