{"id":50475749,"url":"https://github.com/williamcanin/shred-extension-rs","last_synced_at":"2026-06-01T13:01:45.494Z","repository":{"id":348977425,"uuid":"1200093463","full_name":"williamcanin/shred-extension-rs","owner":"williamcanin","description":":crab: :package: A native and ultra-lightweight extension for the Nautilus and Thunar file managers.","archived":false,"fork":false,"pushed_at":"2026-04-03T16:33:10.000Z","size":32,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-03T19:08:25.504Z","etag":null,"topics":["extension","gnome","lib","library","nautilus","rust","shred","thunar","xfce4"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/williamcanin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"williamcanin"}},"created_at":"2026-04-03T03:05:42.000Z","updated_at":"2026-04-03T16:33:14.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/williamcanin/shred-extension-rs","commit_stats":null,"previous_names":["williamcanin/shred-extension-rs"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/williamcanin/shred-extension-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/williamcanin%2Fshred-extension-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/williamcanin%2Fshred-extension-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/williamcanin%2Fshred-extension-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/williamcanin%2Fshred-extension-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/williamcanin","download_url":"https://codeload.github.com/williamcanin/shred-extension-rs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/williamcanin%2Fshred-extension-rs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33775864,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-01T02:00:06.963Z","response_time":115,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["extension","gnome","lib","library","nautilus","rust","shred","thunar","xfce4"],"created_at":"2026-06-01T13:01:41.743Z","updated_at":"2026-06-01T13:01:45.489Z","avatar_url":"https://github.com/williamcanin.png","language":"Rust","funding_links":["https://github.com/sponsors/williamcanin"],"categories":[],"sub_categories":[],"readme":"# Shred Extension Rs\n\n[![Build Status](https://img.shields.io/github/actions/workflow/status/williamcanin/shred-extension-rs/release.yml?logo=github)](https://github.com/williamcanin/shred-extension-rs/actions)\n[![Rust](https://img.shields.io/badge/Language-Rust-orange?logo=rust)](https://www.rust-lang.org/)\n[![Platform](https://img.shields.io/badge/Platform-Linux%20%7C%20GNOME%20%26%20XFCE-blue?logo=linux)](#)\n[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)\n\nA native, ultra-lightweight extension for the **Nautilus (GNOME)** and **Thunar (XFCE)** file managers that adds a permanent, government‑grade secure deletion option (**Shred**) to your file context menu.\n\nWritten in **Rust**, the extension focuses on high performance and maximum data destruction security. It communicates directly with low-level C APIs (GObject / libnautilus-extension / libthunarx) without bloated dependency layers.\n\n## ✨ Features\n\n* **Native Context Menu Integration**: A clear \"Secure Delete\" option available for any file in GNOME or XFCE file managers.\n* **Secure Empty Trash**: Right-click the Trash icon or its background to securely wipe all deleted files. It recursively shreds the actual data on disk before removing entries from the trash system.\n* **Integrated Confirmation Dialog**: To prevent accidental clicks and the headaches the `shred` command can cause when misused, the extension calls the system’s native dialog (`zenity`). A \"Yes/OK\" confirmation is required.\n* **Smart File Camouflage**: Unlike the native `shred -u` behavior in the terminal (which briefly pollutes your folder with renamed artifacts like `000000`), this extension hides files inside temporary \"invisible\" directories (starting with `.`). The deletion happens behind the scenes, silently.\n* **Modular Architecture (Workspace)**: Now structured as a Rust Workspace with zero cross-manager warnings. You can build specific extensions for Nautilus or Thunar without bloating the binary.\n* **Built‑in Internationalization (i18n)**: Automatic language detection based on the system locale to display menus and messages in:\n\n  * 🇧🇷 Portuguese‑BR / PT (\"Excluir com Segurança\" / \"Esvaziar Lixeira com Segurança\")\n  * 🇪🇸 Spanish (\"Eliminación Segura\" / \"Vaciar Papelera de Forma Segura\")\n  * 🇺🇸 English / Fallback (\"Secure Delete\" / \"Secure Empty Trash\")\n\n---\n\n## 📦 Installation \u0026 Build\n\nYou can install the extension in three different ways:\n\n1. **Arch Linux (AUR)** — separate packages for each file manager\n2. **Universal automatic script (any distro)**\n3. **Manual compilation (from source)**\n\n---\n\n### 🐧 Arch Linux (AUR)\n\nIf you use Arch Linux or derivatives (EndeavourOS, Manjaro, CachyOS, etc.), install directly from the AUR:\n\n*   **Nautilus**: `yay -S shred-extension-rs-nautilus`\n*   **Thunar**: `yay -S shred-extension-rs-thunar`\n\nBoth packages install the library in the correct system path.\n\n---\n\n### 🚀 Automatic Installation (Any Linux Distribution)\n\nYou can install **without downloading anything** by running the script directly from the official repository:\n\n```bash\nbash \u003c(curl -fsSL https://raw.githubusercontent.com/williamcanin/shred-extension-rs/main/install.sh)\n```\n\n---\n\n### 🛠 Manual Compilation\n\nTo build from source, ensure you have `rustup` and `pkg-config` installed.\n\n1. **Clone the repository**:\n   ```bash\n   git clone https://github.com/williamcanin/shred-extension-rs.git\n   cd shred-extension-rs\n   ```\n\n2. **Build for your file manager**:\n   * **Nautilus**:\n     ```bash\n     cargo build -p shred-nautilus --release\n     sudo cp target/release/libshred_nautilus.so /usr/lib/nautilus/extensions-4/libshred_extension_rs.so\n     nautilus -q\n     ```\n   * **Thunar**:\n     ```bash\n     cargo build -p shred-thunar --release\n     sudo cp target/release/libshred_thunar.so /usr/lib/thunarx-3/libshred_extension_rs.so\n     thunar -q\n     ```\n\n\u003e [!TIP]\n\u003e Each extension depends on the `shred-common` internal crate, ensuring that shared logic (like the shredding algorithm) remains consistent across all platforms while keeping the final binaries lightweight.\n\n---\n\n## 🧑‍💻 Motivation \u0026 Backend Architecture\n\nIf you are interested in Software Engineering, C‑FFI integration, and how we worked around Rust library limitations that block the GTK *main thread*, check out [ARCHITECTURE.md](ARCHITECTURE.md) for implementation details.\n\n---\n\n**Usage Warning:** *The overwrite process runs in 3 stages followed by zero‑filling. This tool performs high‑security deletion and the process is **irreversible**. Make sure you know exactly what you are clicking.*\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwilliamcanin%2Fshred-extension-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwilliamcanin%2Fshred-extension-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwilliamcanin%2Fshred-extension-rs/lists"}