I have an xfce VNC batch connect job, and when I click the minimize button on the top right of the window, I get a black screen with no buttons whatsoever. It doesn’t pick up my alt+tab and there’s no taskbar. How can I avoid this? Can I get a taskbar?
script.sh.erb:
#!/usr/bin/env bash
# Clean the environment
module purge
module load mathematica
# Set working directory to home directory
cd "${HOME}"
#
# Launch Xfce Window Manager and Panel
#
(
export SEND_256_COLORS_TO_REMOTE=1
export XDG_CONFIG_HOME="<%= session.staged_root.join("config") %>"
export XDG_DATA_HOME="<%= session.staged_root.join("share") %>"
export XDG_CACHE_HOME="$(mktemp -d)"
module restore
set -x
xfwm4 --compositor=off --daemon --sm-client-disable
xsetroot -solid "#D3D3D3"
xfsettingsd --sm-client-disable
xfce4-panel --sm-client-disable
) &
# Launch Mathematica
<%- if context.gpus.to_i > 0 -%>
module list
set -x
vglrun mathematica
<%- else -%>
module list
set -x
mathematica
<%- end -%>
Is this in the Mathematica app that you’re clicking the button? I don’t have that app myself so I’m not sure what things look like that you are interacting with.
For the alt+tab I’m not sure what you mean here, sorry. Are you trying to cycle through windows within mathematica itself? Or is the key combo not picked up at all at the browser in VNC?
I’m not sure how to get a taskbar to keep that window if it gets minimized. Looking at some things now to see if that’s possible. I can see how that would be frustrating for the user to click and not see anything to then bring the window back.
Another option may be to run this in a desktop and have mathematica accessed from within there so you can have xfce handle the window management.
I’ll have to take more of a look at this, sorry I don’t have a better solution at the moment. Maybe someone else has had this issue and can chime in though.
This batch connect app is just a copy of Matlab. On other deployments (with xfce) does Matlab also have a black screen in the background with no buttons?
This appears to be an issue with how the XFCE panel is configured. I found this comment regarding the same.
The first time you log in to a newly created user id, a pop-up asks you whether you want "the default panel OR one blank panel."
If you pick the former, the Windows Button applet is already included for you in the default panel, so you need do nothing -- your minimization and retrieval of windows or panels will work just fine.
If you pick the latter, just as Richyrich says, you must manually add the Windows Button applet. If you don't, as soon as you try to minimize an application it disappears.
My problem was that I picked the "one blank panel" option and didn't know I needed to add the Windows Button applet for windows to minimize/maximum properly.
Thank you Richyrich for your help.
I’m trying to find if there an entry in the XFCE config file that will fix this. So far no luck. Everyone is stating you have to do it through the properties. Here’s a link to that discussion.