unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [bug]: xfce4: xfpm-power-backlight-helper  alway let me input password.
@ 2022-02-22  1:21 tumashu
  2022-02-22  7:04 ` 宋文武
  0 siblings, 1 reply; 9+ messages in thread
From: tumashu @ 2022-02-22  1:21 UTC (permalink / raw)
  To: guix

[-- Attachment #1: Type: text/plain, Size: 172 bytes --]

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?


Thanks

[-- Attachment #2: Type: text/html, Size: 415 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [bug]: xfce4: xfpm-power-backlight-helper  alway let me input password.
  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
  0 siblings, 1 reply; 9+ messages in thread
From: 宋文武 @ 2022-02-22  7:04 UTC (permalink / raw)
  To: tumashu; +Cc: guix

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.



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re:Re: [bug]: xfce4: xfpm-power-backlight-helper  alway let me input password.
  2022-02-22  7:04 ` 宋文武
@ 2022-02-22  7:15   ` tumashu
  2022-02-22  7:21     ` tumashu
  0 siblings, 1 reply; 9+ messages in thread
From: tumashu @ 2022-02-22  7:15 UTC (permalink / raw)
  To: 宋文武; +Cc: guix














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.




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re:Re:Re: [bug]: xfce4: xfpm-power-backlight-helper  alway let me input password.
  2022-02-22  7:15   ` tumashu
@ 2022-02-22  7:21     ` tumashu
  2022-02-22  7:58       ` 宋文武
  0 siblings, 1 reply; 9+ messages in thread
From: tumashu @ 2022-02-22  7:21 UTC (permalink / raw)
  To: 宋文武; +Cc: guix


>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.

>
>
>

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [bug]: xfce4: xfpm-power-backlight-helper  alway let me input password.
  2022-02-22  7:21     ` tumashu
@ 2022-02-22  7:58       ` 宋文武
  2022-02-22  8:06         ` tumashu
  2022-02-22 23:01         ` tumashu
  0 siblings, 2 replies; 9+ messages in thread
From: 宋文武 @ 2022-02-22  7:58 UTC (permalink / raw)
  To: tumashu; +Cc: guix

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!


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re:Re: [bug]: xfce4: xfpm-power-backlight-helper  alway let me input password.
  2022-02-22  7:58       ` 宋文武
@ 2022-02-22  8:06         ` tumashu
  2022-02-22 23:01         ` tumashu
  1 sibling, 0 replies; 9+ messages in thread
From: tumashu @ 2022-02-22  8:06 UTC (permalink / raw)
  To: 宋文武; +Cc: guix













At 2022-02-22 15:58:40, "宋文武" <iyzsong@outlook.com> wrote:
>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

OK, I will try gdm today,  the problem gdm is that it can not show Chinese, but I have installed a 
Chinese font, I do not know why.

>
>
>
>Hope this helps!

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re:Re: [bug]: xfce4: xfpm-power-backlight-helper  alway let me input password.
  2022-02-22  7:58       ` 宋文武
  2022-02-22  8:06         ` tumashu
@ 2022-02-22 23:01         ` tumashu
  2022-02-25  9:09           ` Zhu Zihao
  1 sibling, 1 reply; 9+ messages in thread
From: tumashu @ 2022-02-22 23:01 UTC (permalink / raw)
  To: 宋文武 ; +Cc: guix

[-- Attachment #1: Type: text/plain, Size: 1921 bytes --]

i can not run gdm success, but have the problem too when run sddm.





--
发自我的网易邮箱手机智能版
<br/><br/><br/>


----- Original Message -----
From: "宋文武" <iyzsong@outlook.com>
To: tumashu <tumashu@163.com>
Cc: guix <guix-devel@gnu.org>
Sent: Tue, 22 Feb 2022 15:58:40 +0800
Subject: Re: [bug]: xfce4: xfpm-power-backlight-helper  alway let me input password.

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!

[-- Attachment #2: Type: text/html, Size: 3489 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [bug]: xfce4: xfpm-power-backlight-helper  alway let me input password.
  2022-02-22 23:01         ` tumashu
@ 2022-02-25  9:09           ` Zhu Zihao
  2022-02-26  0:22             ` tumashu
  0 siblings, 1 reply; 9+ messages in thread
From: Zhu Zihao @ 2022-02-25  9:09 UTC (permalink / raw)
  To: tumashu; +Cc: 宋文武, guix-devel

[-- Attachment #1: Type: text/plain, Size: 688 bytes --]


tumashu <tumashu@163.com> writes:

> i can not run gdm success, but have the problem too when run sddm.

Try put a fontconfig file under /var/lib/sddm/.config/fontconfig/fonts.conf

cat > /var/lib/sddm/.config/fontconfig/fonts.conf << "EOF"
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
   <dir>/run/current-system/profile/share/fonts/</dir>
</fontconfig>
EOF

And install the fonts in system wide package configuration.

This issue was introduced in the merge of 'core-updates-frozen'. But I
can't find a proper way to fix this. 

-- 
Retrieve my PGP public key:

  gpg --recv-keys D47A9C8B2AE3905B563D9135BE42B352A9F6821F

Zihao

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 255 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re:Re: [bug]: xfce4: xfpm-power-backlight-helper  alway let me input password.
  2022-02-25  9:09           ` Zhu Zihao
@ 2022-02-26  0:22             ` tumashu
  0 siblings, 0 replies; 9+ messages in thread
From: tumashu @ 2022-02-26  0:22 UTC (permalink / raw)
  To: Zhu Zihao; +Cc: 宋文武, guix

[-- Attachment #1: Type: text/plain, Size: 844 bytes --]




















At 2022-02-25 17:09:25, "Zhu Zihao" <all_but_last@163.com> wrote:
>
>tumashu <tumashu@163.com> writes:
>
>> i can not run gdm success, but have the problem too when run sddm.
>
>Try put a fontconfig file under /var/lib/sddm/.config/fontconfig/fonts.conf
>
>cat > /var/lib/sddm/.config/fontconfig/fonts.conf << "EOF"
><?xml version='1.0'?>
><!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
><fontconfig>
>   <dir>/run/current-system/profile/share/fonts/</dir>
></fontconfig>
>EOF
>
>And install the fonts in system wide package configuration.
>
>This issue was introduced in the merge of 'core-updates-frozen'. But I
>can't find a proper way to fix this. 


Now I just use slim, for it show English, and no this problem:-)




>
>-- 
>Retrieve my PGP public key:
>
>  gpg --recv-keys D47A9C8B2AE3905B563D9135BE42B352A9F6821F
>
>Zihao

[-- Attachment #2: Type: text/html, Size: 1368 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-02-26  0:23 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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       ` 宋文武
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

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).