linux创建的桌面快捷方式不能启动,提示不被信任

创建linux桌面快捷启动方式启动提示”untrusted application launcher“,且无信任确认,如下图:
启动提示
**原因分析:**用户权限的问题,新版本的Gnome桌面快捷方式如果默认是root,则不让启动。

**解决方案:**把文件权限设置为普通用户权限,启动时使用root密码确认即可解决。
修改文件权限指令:

chown admin:admin /home/admin/Desktop/*.desktop

设置完文件权限,回到Gnome桌面双击启动弹出的窗口中就会有信息选项了,输入root密码确认即可使用了。

Chown 详解
chown(选项)(参数)
常用的就是 chown -P folder //递归设置
Usage: chown [OPTION]… [OWNER][:[GROUP]] FILE…
-c, --changes like verbose but report only when a change is made
-f, --silent, --quiet suppress most error messages
-v, --verbose output a diagnostic for every file processed
–dereference affect the referent of each symbolic link (this is
the default), rather than the symbolic link itself
-h, --no-dereference affect symbolic links instead of any referenced file
(useful only on systems that can change the
ownership of a symlink)
–from=CURRENT_OWNER:CURRENT_GROUP
change the owner and/or group of each file only if
its current owner and/or group match those specified
here. Either may be omitted, in which case a match
is not required for the omitted attribute
–no-preserve-root do not treat ‘/’ specially (the default)
–preserve-root fail to operate recursively on ‘/’
–reference=RFILE use RFILE’s owner and group rather than
specifying OWNER:GROUP values
-R, --recursive operate on files and directories recursively
-H if a command line argument is a symbolic link
to a directory, traverse it
-L traverse every symbolic link to a directory
encountered
-P do not traverse any symbolic links (default)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值