Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* 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...)
- Loading branch information