Xfce Forum

Sub domains
 

You are not logged in.

#1 2024-01-24 10:33:51

EgonF
Member
Registered: 2024-01-01
Posts: 4

xfce with ssh

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

#2 2024-01-24 19:18:25

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: xfce with ssh

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

#3 2024-01-24 21:38:03

EgonF
Member
Registered: 2024-01-01
Posts: 4

Re: xfce with ssh

You can see in my post if I use xfconf-query with a X server the command runs. So xconf is there.

Offline

#4 2024-01-25 00:51:34

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: xfce with ssh

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

#5 2024-01-25 07:58:33

EgonF
Member
Registered: 2024-01-01
Posts: 4

Re: xfce with ssh

Here is the answer:

egon@neuEinzel:~
$ which dbus-launch
/usr/bin/dbus-launch
egon@neuEinzel:~
$

Offline

#6 2024-01-25 11:02:33

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: xfce with ssh

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

#7 2024-01-25 12:23:14

EgonF
Member
Registered: 2024-01-01
Posts: 4

Re: xfce with ssh

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

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.014 seconds, 7 queries executed - Memory usage: 546.77 KiB (Peak: 547.62 KiB) ]