Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot enable Reboot and Shutdown buttons #366

Open
ant-222 opened this issue Jul 1, 2024 · 0 comments
Open

Cannot enable Reboot and Shutdown buttons #366

ant-222 opened this issue Jul 1, 2024 · 0 comments

Comments

@ant-222
Copy link

ant-222 commented Jul 1, 2024

Hello,

I am trying to activate the Shutdown and Reset button in lightdm v. 1.32.0_5 on FreeBSD 14.1. The package description for xfce4-session says that I should add certain JavaScript rules to polkit. I added the follwing:

polkit.addRule(function (action, subject) {
  if ((action.id == "org.freedesktop.consolekit.system.restart" ||
      action.id == "org.freedesktop.consolekit.system.stop")
      && subject.isInGroup("video")) {
    return polkit.Result.YES;
  }
});

to my
/usr/local/etc/polkit-1/rules.d
yet no Shutdown or Restart buttons appeard in the Start menu. My user is in the video group, so that lightdm works and autologin works.
I have tried the same thing without the group condition, but in vain:

polkit.addRule
(  function(action, subject)
   {  if(action.id == "org.freedesktop.consolekit.system.restart" ||
         action.id == "org.freedesktop.consolekit.system.stop"    ||
         action.id == "org.freedesktop.consolekit.system.suspend")
      return polkit.Result.YES;  } );

Here is my lightdm.log, in case it can help. Can you plese help me troubleshoot this error, if it is related to lightdm? Here is my lightdm.conf.

dmesg and /var/log/messages gives nothing interesting about with lightdm or session. In my PAM rules for lightdm-autologin and lightdm-greeter I commented the line:
auth pam_env.so
since PAM does not find this module on my system:
lightdm[1464]: in openpam_load_module(): no pam_env.so found
Can this be a problem?

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

No branches or pull requests

1 participant