如何让软件始终以root身份运行?
Tofloor
poster avatar
后后
deepin
2016-01-27 19:23
Author
经常要用到Remmina Remote Desktop Client连接Windows服务器,发现无法共享粘贴板,试了很多方法都不行,偶尔能成功。发现用root身份运行后可以正常使用了。
不知道是否能像Windows那样右键点击图标,勾选以管理员身份运行,以后运行该软件的时候就自动以管理员身份运行了。

Reply Favorite View the author
All Replies
jllan
deepin
2016-01-27 20:24
#1
修改这个软件的桌面快捷方式那个图标,把命令那里改成echo '你的密码' | sudo -S ***
Reply View the author
后后
deepin
2016-01-28 18:21
#2
https://bbs.deepin.org/post/36612
修改这个软件的桌面快捷方式那个图标,把命令那里改成echo '你的密码' | sudo -S *** ...

是/usr/share/applications/remmina.desktop这个文件么?
改了Exec运行不了。
Reply View the author
jllan
deepin
2016-01-28 21:54
#3
怎么改的,说一下
Reply View the author
jllan
deepin
2016-01-28 21:54
#4
https://bbs.deepin.org/post/36612
是/usr/share/applications/remmina.desktop这个文件么?
改了Exec运行不了。

怎么改的说一下
Reply View the author
后后
deepin
2016-01-29 21:26
#5
https://bbs.deepin.org/post/36612
怎么改的说一下

原来的是:Exec=remmina
我改成了:Exec=echo 'xxxxxx' | sudo -S remmina
然后就无法运行了,还原后可以运行。
Reply View the author
emofode
deepin
2016-01-29 23:38
#6
chmod +s xxx
Reply View the author
yekaisheng
deepin
2016-01-30 01:50
#7
gksu remmina
Reply View the author
后后
deepin
2016-02-01 20:37
#8

加了后无法运行了。
Reply View the author
后后
deepin
2016-02-01 20:38
#9

非常感谢,用这个就可以了。
Reply View the author