Skip to content

Commit

Permalink
fix XFCE windowing for el9 (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
johrstrom authored Oct 10, 2024
1 parent 2c88951 commit 6dbfe08
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions template/script.sh.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,28 @@ 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)"
export $(dbus-launch)

(
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)"
export $(dbus-launch)
module restore
set -x

source /etc/os-release

module restore
set -x
if [[ "$VERSION_ID" < "9" ]]; then
xfwm4 --compositor=off --daemon --sm-client-disable
xsetroot -solid "#D3D3D3"
xfsettingsd --sm-client-disable
xfce4-panel --sm-client-disable
) &
xfce4-panel --sm-client-disable &
else
xfwm4 --compositor=off --sm-client-disable &
xsetroot -solid "#D3D3D3"
xfsettingsd --sm-client-disable &
xfce4-panel --sm-client-disable &
fi

#
# Start MATLAB
Expand Down

0 comments on commit 6dbfe08

Please sign in to comment.