[LightDM] groovy gvm tool not initialized in lightdm-session

David Ljuba ljubad at gmail.com
Tue Aug 19 15:23:50 PDT 2014


Hi,
Sorry if I am spamming this list but this question is related to lightdm 
and I am not subscribed to mailing list.

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.

Gvm tool is tried to be loaded at the end of ~/.profile with this line:

#THIS MUST BE AT THE END OF THE FILE FOR GVM TO WORK!!! ---------> this 
line is appended by gvm installation
[[ -s "/home/david/.gvm/bin/gvm-init.sh" ]] && source 
"/home/david/.gvm/bin/gvm-init.sh

and ~/.profile script is called on the start of lightdm-session script 
which generates this log:

➜  ~  lightdm-session
Running X session wrapper
Loading profile from /etc/profile
Loading profile from /home/david/.profile
*/usr/sbin/lightdm-session: 36: /home/david/.profile: [[: not found*
Loading resource: /etc/X11/Xresources/x11-common
Loading modmap: /home/david/.Xmodmap
...

I first found this error in log:
➜  ~  cat ~/.xsession-errors
/usr/sbin/lightdm-session: 36: /home/david/.profile: [[: not found

after some research I found this 
http://stackoverflow.com/questions/13702425/source-command-not-found-in-sh-shell 


After changing "shebang" of lightdm-session script  (sudo vim 
/usr/sbin/lightdm-session)
from #!/bin/sh to #!/bin/bash

error message disappeared and now I can use groovy (installed using gvm 
tool) from Sublime text editor and Sublime REPL plugin with easy.

I have two computers with Ubuntu 14.04 Unity with same problem resolved 
by shebang correction.

Is it possible to fix this problem somehow?

David Ljuba
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/lightdm/attachments/20140820/208b9dc7/attachment.html>


More information about the LightDM mailing list