[Desktop] 添加软件快捷方式右键添加以管理员运行
Tofloor
poster avatar
牧野
deepin
2023-04-23 17:35
Author

最近用deepin做开发,做一个串口通信的应用,发现在deepin下 要运行串口调试助手,都要sudo授权才能开启串口,才能操作,敲指令也不是问题,估计其他软件应该也会出现找个问题。

image.png

image.png

Reply Favorite View the author
All Replies
liwl
deepin
2023-04-23 17:52
#1

看看这个:https://bbs.deepin.org/post/202966

Reply View the author
忘记、过去
deepin
2023-04-23 19:37
#2

写个启动脚本

#!/bin/bash
pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xxxxxxxx

P.S. xxxxxxxx 为你的可执行文件绝对路径

然后给这个脚本赋予可执行权限,.desktop 的 Exec= 字段写这个可执行文件的绝对路径就行

Reply View the author