From: 宋文武 <iyzsong@outlook.com>
To: tumashu <tumashu@163.com>
Cc: guix <guix-devel@gnu.org>
Subject: Re: [bug]: xfce4: xfpm-power-backlight-helper alway let me input password.
Date: Tue, 22 Feb 2022 15:58:40 +0800 [thread overview]
Message-ID: <TYCP286MB18972B1C2B4E6FBD07602D8DA33B9@TYCP286MB1897.JPNP286.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <4a8a8aa9.3e60.17f204e46cd.Coremail.tumashu@163.com> (tumashu@163.com's message of "Tue, 22 Feb 2022 15:21:15 +0800 (CST)")
tumashu <tumashu@163.com> writes:
>>At 2022-02-22 15:04:22, "宋文武" <iyzsong@outlook.com> wrote:
>>
>>>tumashu <tumashu@163.com> writes:
>>>
>>>> Hello:
>>>>
>>>> When I update my guix system today, I have found that run xfce4: xfpm-power-backlight-helper alway let me input password, how to avoid input password?
>>>
>>>No answer yet, my understand is that:
>>>
>>>1. xfpm-power-backlight-helper need to run with 'pkexec'.
>>>2. 'pkexec' will always ask for password unless some polkit rules allow
>>> the action.
>>>3. '/etc/polkit-1/actions/org.xfce.power.policy' allows the action, but its
>>> executable is something like
>>> '/gnu/store/vsnzjhjm37cd42w7vv7mxgy8hi8w6zi0-xfce4-power-manager-4.16.0/sbin/xfpm-power-backlight-helper'.
>>>
>>>So run 'pkexec xfpm-power-backlight-helper' will ask for password while 'pkexec /gnu/store/.../xfpm-power-backlight-helper' will not.
>>
>>no, need input password when run "pkexec /gnu/store/.../xfpm-power-backlight-helper"
>>
>>I do not run this command by hand, when I start xfce4 with slim, a window pop and let me input password many time,
>>when I press Fkey, ask password again.
>
> When I test gnome and mate, have no this problem.
>
The policykit rule only allow "active" session, I guess slim may lack
'elogind-service' support to be an "active" session.
I have 'elogind-service' and use 'sx' to start xfce, no problem here...
My ~/.config/sx/sxrc:
#!/bin/sh
setxkbmap dvorak
xsetroot -solid sienna -cursor_name cross
exec dbus-run-session -- startxfce4
Hope this helps!
next prev parent reply other threads:[~2022-02-22 8:03 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-22 1:21 [bug]: xfce4: xfpm-power-backlight-helper alway let me input password tumashu
2022-02-22 7:04 ` 宋文武
2022-02-22 7:15 ` tumashu
2022-02-22 7:21 ` tumashu
2022-02-22 7:58 ` 宋文武 [this message]
2022-02-22 8:06 ` tumashu
2022-02-22 23:01 ` tumashu
2022-02-25 9:09 ` Zhu Zihao
2022-02-26 0:22 ` tumashu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=TYCP286MB18972B1C2B4E6FBD07602D8DA33B9@TYCP286MB1897.JPNP286.PROD.OUTLOOK.COM \
--to=iyzsong@outlook.com \
--cc=guix-devel@gnu.org \
--cc=tumashu@163.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).