1、Ubuntu中用gedit编辑文件后不能保存
这是因为没有相关文件的写权限,更改文件权限使用chmod命令
2、Ubuntu中用gedit保存文件时,提示要生成备份文件,但又提示备份文件无法写入
用ls -l命令查看文件的权限发现,文件已经设置成可写了,问题出在备份文件上。
简单的解决办法就是让gedit保存时不生成备份文件
步骤如下:
打开gedit->edit->preferences->edit,在这个tap中的file saving选项中,不选择生成备份文件那一项。
=========================================================
命令下gedit出错
(gedit:27985): EggSMClient-WARNING **: Failed to connect to the session manager: None of the authentication protocols specified are supported
** (gedit:27985): WARNING **: Could not connect to session bus
解决方法: 使用sudo 命令
尽管可以解决,但我还是不知到为什么已经是root了 还要使用sudo命令