No description
* Enable saving read-only/root files via pkexec (Fixes #249) This update addresses the issue where users couldn't open Cosmic Edit as root. It allows users to save read-only or root files using pkexec for privilege escalation, all within the graphical interface of Cosmic Edit, eliminating the need to open the terminal. Changes: Implemented pkexec functionality for saving read-only/root files. Added a confirmation dialog for file modifications. This feature resolves issue #249 and streamlines the process, ensuring a smoother experience for users managing protected files directly within Cosmic Edit. * Secure pkexec handling with piped stdin and escape safety Enhanced permission handling by using `pkexec` with `tee` and piped stdin. This implementation avoids shell injection risks and ensures proper handling of special escape characters in the input. The approach securely writes text content to files with elevated privileges while maintaining robustness against potentially malicious inputs. * Update tab.rs * Log Errors but dont crash * Update tab.rs * Update tab.rs * Clean up after child (sounds weird...) |
||
|---|---|---|
| .github | ||
| debian | ||
| i18n | ||
| res | ||
| src | ||
| .gitattributes | ||
| .gitignore | ||
| build.rs | ||
| Cargo.lock | ||
| Cargo.toml | ||
| flake.lock | ||
| flake.nix | ||
| i18n.toml | ||
| justfile | ||
| LICENSE | ||
| README.md | ||
| redoxer.sh | ||
COSMIC Text Editor
Text editor for the COSMIC desktop
Currently an incomplete pre-alpha, this project is a work in progress - issues are expected.
Testing
You can test by installing a current version of Rust and then building with cargo.
git clone https://github.com/pop-os/cosmic-edit
cd cosmic-edit
cargo build
You can get more detailed errors by using the RUST_LOG environment variables, that you can invoke for just that one command like this: RUST_LOG=debug cargo run. This will give you more detail about the application state. You can go even further with RUST_LOG=trace cargo run, that shows all logging details about the application.
Clippy Lints
PRs are welcome, as it builds a better product for everyone. It is recommended that you check your code with Clippy Lints turned on. You can find more about Configuring Clippy here.
