# Problems with interactive Matlab app window

**URL:** <https://discourse.openondemand.org/t/problems-with-interactive-matlab-app-window/2476>\
**Category:** Get Help\
**Created:** [February 11, 2023, 11:14pm UTC](https://discourse.openondemand.org/t/problems-with-interactive-matlab-app-window/2476 "2023-02-11T23:14:08Z")\
**Posts on this page:** 1\
**Showing post:** 17

<div class="post-metadata">

**Author:** ![djareval](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/djareval/32/1275_2.png) [@djareval](https://discourse.openondemand.org/u/djareval)\
**Post date:** [April 27, 2023, 5:33pm UTC](https://discourse.openondemand.org/t/problems-with-interactive-matlab-app-window/2476/17 "2023-04-27T17:33:43Z")

</div>

We recently had to revisit this due to a separate issue, and time had provided a little insight (I think!).  
To summarize, for future reference:

To get a working setup on RHEL 8 with Xfce 4.16.1 (from EPEL), two changes are needed from OSC’s baseline **script.sh.erb** :

1. A message bus for the various Xfce components has to be manually launched (`dbus-launch`)
2. The window manager `xfwm4` has to executed in the background; [the `--daemon` option is no longer valid](https://gitlab.xfce.org/xfce/xfwm4/-/commit/43e76c7bdfa6db6bf95f576723dc5e41cc15f59e)

Here’s the parenthesized block of Xfce commands we’re using with success:

```auto
# Launch Xfce Window Manager and Panel
#
(
  export XDG_CONFIG_HOME="<%= session.staged_root.join("config") %>"
  export XDG_DATA_HOME="<%= session.staged_root.join("share") %>"
  export XDG_CACHE_HOME="$(mktemp -d)"
  eval $(dbus-launch --sh-syntax)
  xfwm4 --compositor=off --sm-client-disable &
  xsetroot -solid "#D3D3D3"
  xfsettingsd --daemon --sm-client-disable
  xfce4-panel --sm-client-disable
) &

```

---

_[View the full topic](https://discourse.openondemand.org/t/problems-with-interactive-matlab-app-window/2476)._
