解决linux快捷方式出现untrusted application launcher问题

解决linux快捷方式出现untrusted application launcher问题

gnome的bug,有时候启动不显示允许将这个快捷方式信任的选项,这里贴出我的内容

[Desktop Entry]
Encoding=UTF-8
Exec=/home/Downloads/mendeleydesktop/bin/mendeleydesktop %f
Icon=/home/Downloads/mendeleydesktop/share/icons/hicolor/48x48/apps/mendeleydesktop.png
Name=Mendeley
Type=Application
Comment=Mendeley applications
Terminal=0

问题出在gnome的安全机制上,在github上有说明

Currently we only trust desktop files that have the executable bit
set, and don't replace the displayed icon or the displayed name until
it's trusted, which prevents for running random programs by a malicious
desktop file.

However, the executable permission is preserved if the desktop file
comes from a compressed file.

To prevent this, add a metadata::trusted metadata to the file once the
user acknowledges the file as trusted. This adds metadata to the file,
which cannot be added unless it has access to the computer.

Also remove the SHEBANG "trusted" content we were putting inside the
desktop file, since that doesn't add more security since it can come
with the file itself.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值