CudaText does not save files as root

Created on 7 Jun 2021  路  7Comments  路  Source: Alexey-T/CudaText

Is it possible to add the feature of saving system files(Linux) as root(like SublimeText)?
Currently CudaText open system files read-only.
Thanks!

enhancement

Most helpful comment

it's interesting, I must try to integrate it...

All 7 comments

I don't know how can my app do it, especially for linux.

sublime uses pkexec to copy temp file to descination as root

/usr/bin/pkexec /bin/cp /tmp/.subl567.tmp /etc/cron.daily/.placeholder

pkexec

It gives a prompt to enter a password... on Ubuntu :)

it's interesting, I must try to integrate it...

I placed fixed beta to http://uvviewsoft.com/c/
pls test.
it uses 'pkexec' and 'mv' from root to copy to system dirs. but Cud shows then "File was changed outside" warning, press Reload in it. I don't know how to hide it.

Does not yet allow editing system files.
Files are opened read-only.

Version: cudatext_1.134.0.2-1_gtk2_amd64.deb

fixed this now, and updated beta in /c folder.

Thanks for adding the feature. :+1: :-D

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rhinolophus picture rhinolophus  路  5Comments

JairoMartinezA picture JairoMartinezA  路  5Comments

EchedeyLR picture EchedeyLR  路  3Comments

charliewales picture charliewales  路  4Comments

junguler picture junguler  路  5Comments