Skip to content

討論有關於「pkexec」和「PATH」 #25

Discussion options

You must be logged in to vote

最开始我还不信他跟profile有关,查了一大堆文件(甚至对比原cutefish的brightness模块,polkit rule,etc.)最后发现确实是PATH的问题(

以下为正常的Debian 13的PATH:

root@f6cfc8cc7b01:/# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
root@f6cfc8cc7b01:/#

(Arch Linux的PATH里甚至没有/bin

事实证明,/bin本该在后面

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by samwhelp
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@elysia-best
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants