rvm does not work in graphical sessions started via lightdm

Bug #881701 reported by Ech
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ruby-rvm (Ubuntu)
New
Undecided
Unassigned

Bug Description

On a fresh install of ubuntu 11.10 ( also tried with xubuntu 11.10 )

sudo apt-get install ruby-rvm ==> OK
sudo rvm install 1.9.2 ==> OK
sudo rvm use 1.9.2 --default ==> OK

logout / login

rvm list ==> correctly shows the installed ruby

ruby -v ==> error: there is no ruby installed.

Same procedure on kubuntu

ruby -v correctly shows ruby 1.9.2

( it also works on ubuntu from a text console ( ctrl+alt+f1) console )

I looks like the /etc/profile.d/rvm.sh does not find a correct "context" (eg: $BASH_VERSION gives an empty string ) when the session has been started from lightDM

I Also tried with the stock rvm install script ( from beginrescueend.com) with identical results...

Ech (ech1965)
description: updated
Revision history for this message
Stefano Rivera (stefanor) wrote :

> I Also tried with the stock rvm install script ( from beginrescueend.com) with identical results...

In that case, I strongly suggest you report that bug to RVM upstream https://github.com/wayneeseguin/rvm/issues

Revision history for this message
Ech (ech1965) wrote :

What could rvm upstream possibly do if ON THE SAME system rvm works when started from a text virtual console ( CTRL+ALT+F2) and does not work from a gnome-terminal in a graphical session ?

Since I moved to kubuntu, the problem does not occurs anymore.
It looks like KDM behaves differently than LightDM as far as /etc/profile.d is concerned.

Thanks for you time...
Etienne

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.