Xfce Forum

Sub domains
 

You are not logged in.

#1 2024-01-05 12:10:55

carloratm
Member
Registered: 2023-12-11
Posts: 7

[SOLVED] How to change xfce4-panel start arguments

Hi all,

I am using xmonad as the window manager in xfce and I am impressed about how good it runs.

One thing I'd like to accomplish is to start `xfce4-panel` using the `--disable-wm-check` flag.
Problem is I don't see `xfce4-panel` among the autostart applications in the session and startup settings manager.

Where could I set default arguments for xfce4-panel?

Thank you
Cheers!

Last edited by carloratm (2024-01-06 06:03:38)

Offline

#2 2024-01-05 13:31:21

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

Re: [SOLVED] How to change xfce4-panel start arguments

A number of potential options come to mind:

  1. Depending on distro-specifc configs, you could edit the xfce4-session.xml file (default location is /etc/xdg/xfce4/xfconf/xfce-prechannel-xml) and change the section reading:

          <property name="Client1_Priority" type="int" value="20"/>
          <property name="Client1_PerScreen" type="bool" value="false"/>
          <property name="Client2_Command" type="array">
            <value type="string" value="xfce4-panel"/>
          </property>

    ...to:

          <property name="Client1_Priority" type="int" value="20"/>
          <property name="Client1_PerScreen" type="bool" value="false"/>
          <property name="Client2_Command" type="array">
            <value type="string" value="xfce4-panel"/>
            <value type="string" value="--disable-wm-checkl"/>
          </property>

    Make sure you clear the contents of ~/.cache/session before using this option (as a previous saved session might supercede.
    .

  2. After you start xfce4-panel with the --disable-wm-check flag, go to Startup and Applications > Current Session and save it (Note: make sure you only have the applications running that you want as these will be saved and will autostart). This session will be the default for successive logins. This will create an ~/.cache/sessions/xfce4-session... file where you can review if the parameter is properly set.
    .

  3. Assuming that /usr/local/bin preceeded /usr/bin in your $PATH, you could create a /usr/local/bin/xfce4-panel shell script with the following content:

    #!/bin/sh
    /usr/bin/xfce4-panel --disable-wm-check

    ...and make it executable. This will start instead of the main executable at log in and set the parameter.

This information may be different depending on the distro you use.


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-06 06:03:14

carloratm
Member
Registered: 2023-12-11
Posts: 7

Re: [SOLVED] How to change xfce4-panel start arguments

I wen with number 1, which is easy to automate and reproduce with Ansible.
That way I can have many machines ready with a Xfce+xmonad session.

Thank you

Offline

Board footer

Powered by FluxBB