<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi,<br>
Sorry if I am spamming this list but this question is related to
lightdm and I am not subscribed to mailing list.<br>
<br>
It appears that lightdm-session script does not initialize gvm
(groovy version manager) tool and then sublime text editor with
"groovy build" and SublimeREPL plugin can not be run.<br>
<br>
Gvm tool is tried to be loaded at the end of ~/.profile with this
line:<br>
<br>
#THIS MUST BE AT THE END OF THE FILE FOR GVM TO WORK!!!
---------> this line is appended by gvm installation<br>
[[ -s "/home/david/.gvm/bin/gvm-init.sh" ]] && source
"/home/david/.gvm/bin/gvm-init.sh<br>
<br>
and ~/.profile script is called on the start of lightdm-session
script which generates this log:<br>
<br>
➜ ~ lightdm-session<br>
Running X session wrapper<br>
Loading profile from /etc/profile<br>
Loading profile from /home/david/.profile<br>
<b>/usr/sbin/lightdm-session: 36: /home/david/.profile: [[: not
found</b><br>
Loading resource: /etc/X11/Xresources/x11-common<br>
Loading modmap: /home/david/.Xmodmap<br>
...<br>
<br>
I first found this error in log: <br>
➜ ~ cat ~/.xsession-errors<br>
/usr/sbin/lightdm-session: 36: /home/david/.profile: [[: not found<br>
<br>
after some research I found this <a class="moz-txt-link-freetext"
href="http://stackoverflow.com/questions/13702425/source-command-not-found-in-sh-shell">http://stackoverflow.com/questions/13702425/source-command-not-found-in-sh-shell</a>
<br>
<br>
After changing "shebang" of lightdm-session script (sudo vim
/usr/sbin/lightdm-session)<br>
from #!/bin/sh to #!/bin/bash<br>
<br>
error message disappeared and now I can use groovy (installed using
gvm tool) from Sublime text editor and Sublime REPL plugin with
easy.<br>
<br>
I have two computers with Ubuntu 14.04 Unity with same problem
resolved by shebang correction.<br>
<br>
Is it possible to fix this problem somehow?<br>
<br>
David Ljuba<br>
</body>
</html>