/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方式并不是图形化。