openflighthpc / flight-desktop

Manage interactive GUI desktop sessions
Eclipse Public License 2.0
0 stars 2 forks source link

Desktop session scripts rely on being in `etc/types` under `flight_DESKTOP_root` #25

Closed mjtko closed 4 years ago

mjtko commented 4 years ago

We should set an environment variable to the root of the type and use that in the session scripts instead.

This is causing failures when looking for session prep scripts and the like:

cp: cannot stat ‘/opt/flight/opt/desktop/etc/types/gnome/flight-desktop_geometry.sh’: No such file or directory
chmod: cannot access ‘/users/alces-cluster/.local/share/flight/desktop/bin/flight-desktop_geometry.sh’: No such file or directory
cp: cannot stat ‘/opt/flight/opt/desktop/etc/types/gnome/flight-desktop_geometry.desktop.tpl’: No such file or directory
sed: can't read /users/alces-cluster/.config/autostart/flight-desktop_geometry.desktop: No such file or directory
sed: can't read /opt/flight/opt/desktop/etc/types/gnome/flight-desktop_background.sh.tpl: No such file or directory
cp: cannot stat ‘/opt/flight/opt/desktop/etc/types/gnome/flight-desktop_background.desktop.tpl’: No such file or directory
sed: can't read /users/alces-cluster/.config/autostart/flight-desktop_background.desktop: No such file or directory