Xfce Forum

Sub domains
 

You are not logged in.

#1 2026-05-06 08:14:06

appius
Member
Registered: 2026-04-23
Posts: 3
LinuxFirefox 150.0

How to have same config for the panel with and without XFCE session?

I'm using XFCE 4.18 with two sessions - fully fledged XFCE4 itself and minimal OpenBox session with XFCE panel only. I want both sessions to have a panel set with the same configuration. I see that the panel is picking up different configurations in one session and another.

I know about
~/.config/xfce4/panel/
~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml

In the XFCE session, the configurations are picked up by the panel.

But in OpenBox, the panel is picking up some other configuration. The panel is launched simply by "xfce4-panel". I suppose XFCE has a kind of configuration provisioner, which is absent in the OB session, leading to the panel picking up another configuration from somewhere else.

How does it work? Where is it described how the panel works with the configurations location selection under different conditions?

Last edited by appius (2026-05-06 08:33:00)

Offline

#2 2026-05-06 22:55:54

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 12,728
LinuxFirefox 150.0

Re: How to have same config for the panel with and without XFCE session?

Hello and welcome.

I'm using XFCE 4.18 with two sessions - fully fledged XFCE4 itself and minimal OpenBox session with XFCE panel only.

Can we confirm that this is with the same user account?
How do you select which session to use?

But in OpenBox, the panel is picking up some other configuration. The panel is launched simply by "xfce4-panel". I suppose XFCE has a kind of configuration provisioner, which is absent in the OB session, leading to the panel picking up another configuration from somewhere else.

xfconfd must be running to retrieve those settings. Can you check if it is? If not, start it first before xfce4-panel.
Also, your ~/.xsession-errors file might show what's happening when the openbox session is running.


Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Online

#3 2026-05-09 18:30:13

appius
Member
Registered: 2026-04-23
Posts: 3
LinuxFirefox 150.0

Re: How to have same config for the panel with and without XFCE session?

Thanks for pointing the direction!

ToZ wrote:

Can we confirm that this is with the same user account?
How do you select which session to use?

Both sessions are for the same account.

XFCE session is launched by Lightdm in Mint XFCE edition distro. In session selection menu "Xfce session (default)" is selected. Lightdm triggers it's own Lightdm session start script with it's own nuances. But as far as it works for rest of the world, the nuances may be not a reason. However, I had to fix manually "has_option: command not found" (URL, it was found while reading of ~/.xsession-errors).

OpenBox session is launched by xrdp/xrdp-session scripts cascade, from ~/.xinitrc, as simple "exec ssh-agent dbus-launch openbox-session". "xfconfd" is not running. "xfce4-panel" is launched simply from terminal (due to my solution simply is not finished as a whole) after a login.

xfconfd must be running to retrieve those settings. Can you check if it is? If not, start it first before xfce4-panel.

Tried to launch "xfsettingsd --replace --no-daemon" as of URL. And after it tried to launch "/usr/lib/x86_64-linux-gnu/xfce4/xfconf/xfconfd" too.

I see strange phenomenon. When I'm launching Xfce panel in the OpenBox session (after "xfsettingsd" started, and also when "xfsettingsd"+"xfconfd" are launched), the panel is loosing Clock, Windows buttons widget and few more widgets. However, system tray and few launchers (not all) are kept. Same observation is without "xfsettingsd". Subsequent play with "xfce4-panel-profiles" revealed, that Xfce panel will start to work correctly and the XML file on the storage will be with the expected content after a 10+ minutes after an experiments.

Then, when trying to use "xfce4-panel-profiles" in Xfce session, for a while it is not recovering two launchers at the panel. After a while starts to work as expected well.

Sounds like my misunderstanding or a kind of a race condition.

At least, as of my understanding: yes, I did not use certain Xfce parts, which are crucial for the panel (and, probably, for the panel's components). Which is a point for further set up by me.

Last edited by appius (2026-05-09 18:37:19)

Offline

#4 2026-05-09 18:49:56

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 12,728
LinuxFirefox 140.0

Re: How to have same config for the panel with and without XFCE session?

If openbox session is being launched via xrdp, is it the case that both the xfce and openbox sessions are running simultaneously for the given user?

Can you post your ~/.xsession-errors when running openbox and after the xfce4-panel issues have resolved?

A race condition is possible.


Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Online

#5 2026-11-01 21:25:50

appius
Member
Registered: 2026-04-23
Posts: 3
LinuxFirefox 158.0

Re: How to have same config for the panel with and without XFCE session?

ToZ wrote:

A race condition is possible.

Between what objects is the race condition suspected?

As for the selection and workflows I can tell the following:

I am running an XFCE session from Lightdm as it is by the Mint distribution. If you will point to particular parts to point attention at, I may try to read these scripts and the sequence, to identify something particular.

Openbox session is started by XRDP's own scripts cascade, which is landing into `~/.xsession` as my code

    if [ -S "/run/user/${UID}/bus" ]; then
        export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/${UID}/bus"
    else
        eval "$(dbus-launch --sh-syntax)"
    fi
    exec ssh-agent openbox-session

`~/.config/openbox/autolaunch` is spawning the panels, not XFCE panels. With their Opened Windows applet and sys.tray. No XFCE4 panel launch.

These days I am observing the following:

- At base computer with XFCE4 I am doing `killall -u ${USER}`. Logout is not sufficient to close all concurrent process (like Bluetooth and audio services). And `xfconfd` is stopped here. The logout means - user is logged out, nothing is exposing a thing to a world after a log out. Looks like a correct combination of a things.
- At road-warrior (RW) laptop I am connecting via XRDP to the base, where at the base all procs for the account are shutdown in advance by `killall -u ${USER}`. And have a separate Xorg instance for the particular user, running with its own `DISPLAY` value. It is a separated instance to be launched by XRDP's companion-scripts, in comparison with something to be launched by Lightdm and Lightdm mechanics.
- Then - at RW I'm disconnecting from base, leaving the X session running as is with Openbox and panels. It means Opened Windows applet and sys.tray are active, up and running as a part of a panels in XRDP started Openbox session.
- Then, I am logging in to the base from the hardware console. It wakes up additional Xorg via Lightdm mechanics. And I see XFCE4 Panel without opened windows applet and sys.tray. Which configuration is saved into XFCE4 configurations, overwriting the correct settings with the broken ones. sad

I have configuration management, which is able to deploy back correct configurations instead of any other. Today it is the way I am fixing the panel configuration.

Between what objects is the race condition suspected?
What particular things in the logs should I pay attention to?

Yes, it is something different with the topic start subject. But I am sure, the root cause is similar or a same - several sessions for a particular account and an assumptions about.

Last edited by appius (2026-11-01 21:30:28)

Offline

#6 2026-11-01 23:07:51

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 12,728
LinuxFirefox 159.0

Re: How to have same config for the panel with and without XFCE session?

appius wrote:

Between what objects is the race condition suspected?

xfce4-panel and xfconfd.

What particular things in the logs should I pay attention to?

Error messages.
You can also try running xfce4-panel in debug mode and see what it says about trying to start the opened windows applet (tasklist) and systray.

xfce4-panel -q
PANEL_DEBUG=1 xfce4-panel

...feel free to post back output.

Logout is not sufficient to close all concurrent process (like Bluetooth and audio services). And `xfconfd` is stopped here.

systemd has a setting in logind.conf that forces closed all running user processes on logout (KillUserProcesses). Uncomment and set to "=yes" and "sudo systemctl restart systemd-logind" to re-read the configuration file.


Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Online

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

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.018 seconds, 8 queries executed - Memory usage: 596.92 KiB (Peak: 613.88 KiB) ]