You are not logged in.

#1 2022-04-28 06:32:33

admin
Member
Registered: 2022-04-28
Posts: 13

How to make GUI sudo (Gnome polkit) work over XRDP?

The DE is XFCE. I have set up RDP using xrdp and xorgxrdp. My .xinitrc file's content is one line:

    exec dbus-launch --sh-syntax startxfce4

When I tried to run pamac GUI, I could not access the preferences, because it says "Authentication Failed" instead of showing that password dialogue. After some web searching, I found that gnome-polkit needs to be running. But when I ran `/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1` in the terminal inside of an RDP session, it printed the following and exited:

    (polkit-gnome-authentication-agent-1:1053): polkit-gnome-1-WARNING **: 06:26:17.405: Unable to determine the session we are in: No session for pid 1053

How can I make this password input GUI work over RDP? Of course, the password GUI shows up in local session (physical monitor of the computer, not over RDP).

Last edited by admin (2022-04-28 06:33:10)

Offline

#2 2022-04-29 03:46:19

admin
Member
Registered: 2022-04-28
Posts: 13

Re: How to make GUI sudo (Gnome polkit) work over XRDP?

Eh. That thing worked out-of-the-box with Gnome DE. I guess I will go with Gnome instead of XFCE. Sure, I could save a lot of RAM with XFCE, but all these time spending to get things work on XFCE is defeating the saving.

Offline

#3 2022-04-29 11:34:40

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: How to make GUI sudo (Gnome polkit) work over XRDP?

Your .xinitrc is incorrect and missing vital sections.

Please read...
https://wiki.archlinux.org/title/Xinit#xinitrc


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

Board footer

Powered by FluxBB