jtmoderate876
Posts: 33
Joined: Sat Dec 05, 2015 9:38 pm

Re: Remote desktop (xrdp) on stretch: Some menu items do not work

Sat Dec 15, 2018 5:07 pm

Thanks but I am trying to get XRDP working with all menu items (ie. raspberry pi configure, shutdown, etc.) on a clean raspbian install.

I'm again failing.

I can log in but can no longer perform elevated permission tasks such as shutdown, raspberry pi configure, gparted, etc.

jtmoderate876
Posts: 33
Joined: Sat Dec 05, 2015 9:38 pm

Re: Remote desktop (xrdp) on stretch: Some menu items do not work

Sat Dec 15, 2018 7:11 pm

So gparted IS working, as is shutdown (though it asks for credentials).

Raspberry Pi Configure doesn't work and it's execution icon has the following Desktop Entry Command:

env SUDO_ASKPASS=/usr/lib/rc-gui/pwdrcg.sh sudo -A rc_gui

if I replace that with someone's earlier suggestions:
gksudo rc_gui

it works.

fbe
Posts: 448
Joined: Thu Aug 17, 2017 9:08 pm

Re: Remote desktop (xrdp) on stretch: Some menu items do not work

Sat Dec 15, 2018 9:55 pm

My current solution:
Create a file ~/.xsessionrc

Code: Select all

export XAUTHORITY=${HOME}/.Xauthority
This makes the the menu items work, that require root privileges.

Create a directory ~/bin if not already existing and a file ~/bin/lxde-pi-shutdown-helper

Code: Select all

#!/bin/sh
env SUDO_ASKPASS=/usr/lib/rc-gui/pwdrcg.sh sudo -A /usr/bin/lxde-pi-shutdown-helper
Make ~/bin/lxde-pi-shutdown-helper executable.
This cheat makes the logout dialog work without password for pi if sudo is still allowed without password for pi. But other users now can't open the dialog without authenticating as pi, even if they just want to logout.

If you created the bin directory you need to logout and then login again to get it added to your PATH.

Return to “Raspbian”