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

Raimund Steger rs at mytum.de
Wed Aug 20 02:12:05 PDT 2014


On Wed, August 20, 2014 00:23, David Ljuba wrote:
> 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*

Since .profile is also the initialization file of Bourne shells, I think
it's a good idea to use compatible syntax in it. For a simple -s test as
in your example, you could probably simply replace [[ ]] with [ ] and
"source" with ".".

Raimund

-- 
Worringer Str 31 Duesseldorf 40211 DE  home: <rs at mytum.de>
+49-179-2981632 icq 16845346           work: <rs at interface-ag.de>



More information about the LightDM mailing list