You are not logged in.
Pages: 1
At neuEinzel there is installed xfce and I can ask the size of a panel:
egon@neuEinzel:~
$ xfconf-query -c xfce4-panel -p /panels/panel-1/size
35
egon@neuEinzel:~
$
I can ask the same question at HeraEinzel with ssh and starting a X-server:
egon@HeraEinzel:~
$ ssh -X -f egon@neuEinzel "xfconf-query -c xfce4-panel -p /panels/panel-1/size"
egon@HeraEinzel:~
$ 35
But if I ask the same question at HeraEinzel in a ssh session I get an error:
egon@HeraEinzel:~
$ ssh neuEinzel
egon@neuEinzel:~
$ xfconf-query -c xfce4-panel -p /panels/panel-1/size
Fehler beim Initialisieren von libxfconf: D-Bus kann nicht automatisch ohne X11 $DISPLAY gestartet werden.
egon@neuEinzel:~
$
After setting DISPLAY I get another error:
egon@neuEinzel:~
$ export DISPLAY=localhost:0.0
egon@neuEinzel:~
$ xfconf-query -c xfce4-panel -p /panels/panel-1/size
Fehler beim Initialisieren von libxfconf: Fehler beim Erzeugen der Befehlszeile »dbus-launch --autolaunch=fbab367824a8c886bc87614b65998cef --binary-syntax --close-stderr«: Der Kindprozess wurde mit Status 1 beendet.
egon@neuEinzel:~
$
I set the dbus and the next error is shown:
egon@neuEinzel:~
$ export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$UID/bus
egon@neuEinzel:~
$ xfconf-query -c xfce4-panel -p /panels/panel-1/size
Fehler beim Initialisieren von libxfconf: Verbindung ist gescheitert: Datei oder Verzeichnis nicht gefunden.
Why is there this error? What should I do?
Offline
xfconf-query is dependent on xfconf running. If you are logging in through ssh, check to see if that process is running.
Fehler beim Initialisieren von libxfconf: Fehler beim Erzeugen der Befehlszeile »dbus-launch --autolaunch=fbab367824a8c886bc87614b65998cef --binary-syntax --close-stderr«: Der Kindprozess wurde mit Status 1 beendet.
Is dbus-launch installed?
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
You can see in my post if I use xfconf-query with a X server the command runs. So xconf is there.
Offline
When you run xfconf-query from within a valid X session, it will call and start xfconfd if necessary. Since you are running it from an ssh session (not a valid X session), it is having difficulty starting it. The error message you get seems to indicate that there is a problem with dbus-launch.
Can you confirm that dbus-launch is installed?
which dbus-launch
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Here is the answer:
egon@neuEinzel:~
$ which dbus-launch
/usr/bin/dbus-launch
egon@neuEinzel:~
$
Offline
Which distro and which version of Xfce are you running?
Does this work?
dbus-launch xfconf-query -c xfce4-panel -p /panels/panel-1/size
Another option is to query the xml file directly located at ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
This works in a ssh session at HeraEinzel:
--------------------------
egon@HeraEinzel:~
$ ssh neuEinzel
Warning: Permanently added the ECDSA host key for IP address '2001:9e8:79f5:5300:880d:b5f8:defb:f4c' to the list of known hosts.
Linux neuEinzel 5.10.0-27-amd64 #1 SMP Debian 5.10.205-2 (2023-12-31) x86_64
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
You have no mail.
egon@neuEinzel:~
$ dbus-launch xfconf-query -c xfce4-panel -p /panels/panel-1/size
35
egon@neuEinzel:~
$
------------------------------------
MX Linux
xfce 4.18.4
Offline
Pages: 1
[ Generated in 0.014 seconds, 7 queries executed - Memory usage: 546.77 KiB (Peak: 547.62 KiB) ]