You are not logged in.

#1 2015-08-24 18:13:52

heliospan
Member
Registered: 2015-08-24
Posts: 2

XMonad and XFCE - XFCE panel dissapears, is hidden after login

Right after login to xfce4, the xfce4-panel dissapears after the xmonad windown manager starts up. If the xfce4-panel process is killed, then it will be automatically restarted, and will be visible after the restart.

$ kill -9 `pgrep xfce4-panel`

Doing this every time after starting a new xfce session is annoying. I found out that after the xfce4-panel is respawned after killing it, it will start as a subprocess of xfce4-session. So, the following bash script can be placed in the Application and autostart for xfce. Go to  Settings->Session and Startup->Application Autostart. Then add a new application to the list. Put the following executable bash script as the new applicatoin to autostart.

#!/bin/bash
# respawn_panel.sh

pid=`pgrep xfce4-panel`
ppid=`ps -fo ppid --no-header $pid`

while [ "`pgrep xfce4-session`" -ne "$ppid" ]; do
  kill -9 $pid
  sleep 1
  until pid=`pgrep xfce4-panel` &2> /dev/null; do
    sleep 1
  done
  ppid=`ps -fo ppid --no-header $pid`
done 2> /dev/null

Now, at least, the xfce panel will work with xmonad. Hopefully, xmonad and xfce will play better in the future, and this solution will be unnecessary.

Offline

#2 2015-08-24 18:35:42

heliospan
Member
Registered: 2015-08-24
Posts: 2

Re: XMonad and XFCE - XFCE panel dissapears, is hidden after login

Update: I thought this worked, but apparently not. This is related to an issue with the _NET_WORKAREA handling in the XMonad Contrib package.

Offline

Board footer

Powered by FluxBB