<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hi.</div><div><br></div><div>I wish to report an issue regarding environment-modules version 4.1.1-1 in universe/devel. I run Linux Min 19 but this issue lies with Ubuntu. It's not really a bug, more of a compatibility problem. According to the files in the package this software is meant to be initialised during login since it puts a file under /etc/profile.d/ named modules.sh which in turn sources initialisation files under /usr/share/modules/init depending on the user's shell. The initialisation fails because some files contain the shebang #!/bin/sh which means that /bin/dash runs those files in particular a file which sets up the shell command "module". The commands are then exported as are a number of environment variables but apparently dash does not entirely cope with this as the commands are not available when a terminal session is started although the set environment variables are. <br></div><div><br></div><div>I use bash and I changed /bin/sh to point to /bin/bash instead of /bin/dash, logged out and logged back in and the initalisaion worked as expected. <br></div><div><br></div><div>I would suggest that the package be patched to cope with the user's choice of shell provided it is supported by the package. Needless to say, dash is not supported. <br></div><div><br></div><div>I do not know if Ubuntu sources /etc/profile during graphical login but Mint does. In case Ubuntu doesn't I would suggest that the installation of the package puts a sourcing line in ~/xsessionrc or tells the user to do so, at least tell the user what to do to make it work.<br></div><div><br></div><div>I would really appreciate this to be done. The software is really handy and many would welcome a pacage installation that works as intended.</div><div><br></div><div>You can find details of my trials and errors here:</div><div><a href="https://forums.linuxmint.com/viewtopic.php?f=47&t=279377">https://forums.linuxmint.com/viewtopic.php?f=47&t=279377</a></div><div><br></div><div>If someone wishes to contact me in this matter please send a mail to <a href="mailto:gostal@foi.se">gostal@foi.se</a></div><div><br></div><div>Kind regards,</div><div><br></div><div>Gösta Ljungdahl</div></div></div></div></div>