侧边栏壁纸
博主头像
落叶人生博主等级

走进秋风,寻找秋天的落叶

  • 累计撰写 130562 篇文章
  • 累计创建 28 个标签
  • 累计收到 9 条评论
标签搜索

目 录CONTENT

文章目录

ElementaryOS为scratch-text-editor增加Root打开方式

2023-12-02 星期六 / 0 评论 / 0 点赞 / 85 阅读 / 502 字

/usr/share/applications中打开scratch-text-editor.desktop 增加一个Action: [Desktop Action NewRootWindow] Nam

/usr/share/applications中打开scratch-text-editor.desktop

增加一个Action:

[Desktop Action NewRootWindow]
Name=New Window As Root
Name[zh_CN]=新建管理员窗口
Exec=gksu scratch-text-editor

在Actions里注册:

Actions=NewWindow;NewRootWindow;NewDocument;AboutDialog;

 

gksu是啥?他是以图形化界面Root权限打开一个程序,sudo是CLI方式并不是图形化。

广告 广告

评论区