How to set custom xfce panel layout in Cubic?

Asked by Matus

Hello there. I want set custom layout for my customized Ubuntu ISO, but when I installed xfce layout manager, It cannot set my own layout, but I got this: root@cubic:~# xfce4-panel-profiles load FriendlyOS.tar.bz2
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused
Traceback (most recent call last):
  File "/usr/share/xfce4-panel-profiles/xfce4-panel-profiles/xfce4-panel-profiles.py", line 389, in <module>
    connection = Gio.bus_get_sync(session_bus, cancellable)
gi.repository.GLib.Error: g-io-error-quark: Cannot autolaunch D-Bus without X11 $DISPLAY (0)

Can you please help me?

Question information

Language:
English Edit question
Status:
Answered
For:
Cubic Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Cubic PPA (cubic-wizard) said :
#1

Are you trying to run a GUI program from the terminal in Cubic ?

Revision history for this message
Matus (ytgroovygorila21) said :
#2

No. I executed xfce4-panel-profiles load FriendlyOS.tar.bz2.

Revision history for this message
Cubic PPA (cubic-wizard) said :
#3

xfce4-panel-profiles is GUI app, but it has a command line interface.

    https://docs.xfce.org/apps/xfce4-panel-profiles/start

Oddly, the command line interface seems to be trying to open an X11 display.
This might be a quirk of how the application was coded.

Nevertheless, xfce4-panel-profiles is also trying to use D-Bus, but D-Bus will not be running in the terminal environment, which is just a secure file system where you have root privileges. It is not a running OS, so you can not run programs that require background services such as D-Bus.

Find out which files the xfce4-panel-profiles program modifies, and modify those files manually.

I am not an XFCE user, so I can't guide you where the files are, and which files need to be modified.

However, based on this question/answer...

    https://askubuntu.com/questions/224006/resetting-xfce-panels-to-default-settings

...I think you need to look at the files under

    /usr/lib/x86_64-linux-gnu/xfce4

My guess is, you need to untar FriendlyOS.tar.bz2 and drop the contents into the correct directory path (probably somewhere under /usr/lib/x86_64-linux-gnu/xfce4). Look at your running system to figure out where the files should be placed.

Can you help with this problem?

Provide an answer of your own, or ask Matus for more information if necessary.

To post a message you must log in.