You are not logged in.
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
A number of potential options come to mind:
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.
.
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.
.
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
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
[ Generated in 0.007 seconds, 7 queries executed - Memory usage: 524.43 KiB (Peak: 529.76 KiB) ]