Open
Conversation
Owner
|
在开btrfs-assistant的遇到了类似的问题。我把xhost添加进了自动启动里,貌似不需要这样的脚本了。就是不知道自动启动设置这个会不会有什么问题。 |
Contributor
Author
看了下新加的配置应该是在启动时就直接提权了,和我的脚本原理一致。我之前检索解决方法时看到直接授予root用户x11权限有安全风险,所以制作了这个脚本来在启动软件前授权并在结束后及时取消授权。但对于直接授权的操作是否规范我也不确定。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
在运行某些需要提权的x11程序(如easytier-gui,ventoy)在提权后会因为root用户无xhost权限而无法初始化xwayland窗口,该脚本可以通过临时授予root用户xhost权限的方式解决这一问题,可以在命令行或.desktop文件使用。