Urbackupclientgui GTK+ error in Debian 10


I have followed instructions to compile and install urbackupclient in Debian 10, it looks like it runs fine, but when I try to access to “Add/Remove backups paths” or “Settings” I got this error in terminal (and no window opens):

Could not load password file!
gksudo: not found
kdesudo: not found
gksu: not found
kdesu: not found
No protocol specified
23:48:54: Error: Unable to initialize GTK+, is DISPLAY set properly?

I guess that since gksu and so on are deprecated it should be run with pkexec?

That or hack about with lxqt-sudo which can substitute for gksu et. al. pulls in various qt deps though, & you may need to manually create a sym-link to make it be triggered in place of one of the other items listed as “not found” if you go that route rather than pkexec.

It looks like lxqt doesn’t work either… maybe the issue is wayland?

Wayland you’ll need the pkexec route, or plain old sudo in a terminal, lxqt-sudo won’t work with that, only under X.

I have create this policy (/usr/share/polkit-1/actions/com.debian.urbackupclientgui.policy)

<?xml version=”1.0″ encoding=”UTF-8″?>
<!DOCTYPE policyconfig PUBLIC “-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN” “http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd”>
<policyconfig><action id=”com.debian.urbackupclientgui“>
  <description xml:lang=”es”>Runr urBackup Client Gui as root</description>
  <message xml:lang=”es”>Authenticaiton needed to run urBackup Client Gui</message>
  <annotate key=”org.freedesktop.policykit.exec.path”>/usr/local/bin/urbackupclientgui</annotate>
  <annotate key=”org.freedesktop.policykit.exec.allow_gui”>true</annotate>

But I still get this error after entering the password:
Error: Unable to initialize GTK+, is DISPLAY set properly?

Am I missing something?

I don’t know tbh, it’s a couple of years since I last played with policykit & even then it usually took me nine attempts to make anything work, you’ll need someone more up to date with Linux than me I suspect.

Can you start the gui from a terminal?
What about using sudo there?

I’m rusty & somewhat out of my depth, it’s a miracle I remembered lxqt-sudo as a substitute for gksu :upside_down_face:

About all I can offer as out of date & practice as I am, is a link to the manpage for pkexec.
pkexec(1): Execute command as another user - Linux man page (die.net)
I’m really much more familiar with Windows, hopefully someone will happen along who can help more.