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
xRDP + XFCe4 = no shutdown/reboot buttons #2298
Comments
I have confirmed the same issues apply for xubuntu 20.04.4 as well with the default XRDP installation. |
It is managed by polkit. xrdp doesn't have a control on that. |
@Xboarder56 - if you search the issues here for 'polkit' you'll find plenty of information related to your question. We haven't documented this explicitly, as every desktop is different, and there are at least two versions of polkit in common use at the moment. You're running polkit 0.105, so you need to set up one or more ini-style pkla files related to the polkit actions you wish to authorize. |
Do you mean something like this? I have tried the below and rebooted without any success. I verified the user is in the plugdev group as well as just ripping that portion away all together.
Looking at some of the other issues I found
I tweaked the 50-xrdp.rules file to be this and rebooted but still no further.
|
I tried something like this under
|
Hi All for future reference I solved this via the code block below and a reboot/polkit service restart.
|
This is what worked for me in Debian 11 + xrdp. I've put his inside
|
fyi on future versions of polkit, *.pkla files are no longer supported. You need to create JS rules as *.rules files in `/etc/polkit-1/rules.d/.rules For example, following this thread, you'd allow shutdown / reboot the following way (note that you should add a condition on polkit.addRule(function(action, subject) {
polkit.log(action + ", " + subject);
if (~["org.freedesktop.login1.power-off","org.freedesktop.login1.power-off-multiple-sessions","org.freedesktop.login1.reboot","org.freedesktop.login1.reboot-multiple-sessions"].indexOf(action.id)) {
return polkit.Result.YES;
}
}); save this file as Sorry for gravedigging, but I scratched my head for hours trying to understand why my .pkla rules were not working, while the directory structure for policykit has completely changed. Hope this helps someone as lost as me. |
Neat! I was having trouble fixing the color-manager policy on Ubuntu 23.10 as well & your solution works perfectly. |
Hi All,
I have been testing xRDP on kali linux which includes XFCE4 as the default display manager. On a local login XFCE4 has the startup shutdown buttons displayed correctly, however connecting via xRDP I get the desktop UI and everything but then I can only logout (shutdown/restart are greyed out).
this was on a fresh kali linux iso with the default settings and just installing the xRDP package from the default repository.
What could be the cause for this changing when connecting via xRDP?
The text was updated successfully, but these errors were encountered: