[Bug 962270] Re: /usr/sbin/lightdm-session: 34: [: Linux: unexpected operator

2014-08-25 Thread Steven Shaw
@lj-pinho, Unfortunately that solution will not work if you have Bash- specific shell syntax in your .bash_profile (and why wouldn't you?). I'm currently having this same issue because of using `[[ ]]` instead of `[ ]` and source instead of `.`. I _knew_ there was a good reason I'd previously

[Bug 962270] Re: /usr/sbin/lightdm-session: 34: [: Linux: unexpected operator

2014-03-06 Thread Luis Pinho
A possible temporary workaround for this, is to create a .profile file, if it not already exists and add the following line: bash ~/.bash_profile This is what I have to do to all my 150 LDAP users, now it works. -- You received this bug notification because you are a member of Ubuntu Bugs,

[Bug 962270] Re: /usr/sbin/lightdm-session: 34: [: Linux: unexpected operator

2013-12-23 Thread Hang Fire
I suddenly got this bug after an update; my primary user login does NOT work. I can log in on a text alternate console; or as Guest. What is interesting is I have NO user customizations to any ~/.bash* files; so the critique above does NOT apply to me. .xsession looks like this:

[Bug 962270] Re: /usr/sbin/lightdm-session: 34: [: Linux: unexpected operator

2013-11-18 Thread Diet Coker
Please specify why lightdm-session's shell script is not called interactively? The default declaration in bashrc is to return if bashrc is called non-interactively. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.

[Bug 962270] Re: /usr/sbin/lightdm-session: 34: [: Linux: unexpected operator

2013-11-17 Thread Vagif Kuliyev
This needs to be reopened. 1. It's possible that the .profile should be executed with the user's shell. 2. It would appear that for some user's, .profile happens to be executed with bash (or the user's shell) and in other cases it is executed with /bin/sh. 3. Please specify at what point in

[Bug 962270] Re: /usr/sbin/lightdm-session: 34: [: Linux: unexpected operator

2013-11-17 Thread Vagif Kuliyev
Nevermind, I don't know why I was under the impression that some users execute X session with anything other than /bin/sh. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/962270 Title:

[Bug 962270] Re: /usr/sbin/lightdm-session: 34: [: Linux: unexpected operator

2013-03-21 Thread Sebastien Bacher
@hamish: thanks for debugging this! Closing the bug, Barry it seems it's just a bash specific syntax in your user config and that turning it to a proper posix syntax should fix the issue ** Changed in: lightdm (Ubuntu) Status: Confirmed = Invalid -- You received this bug notification

[Bug 962270] Re: /usr/sbin/lightdm-session: 34: [: Linux: unexpected operator

2013-03-06 Thread hamish
'if [ a == b ]' is a bashism. you need to do 'if [ a = b ]' instead if the shebang is #!/bin/sh. Hamish -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/962270 Title: /usr/sbin/lightdm-session: 34:

[Bug 962270] Re: /usr/sbin/lightdm-session: 34: [: Linux: unexpected operator

2013-03-03 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: lightdm (Ubuntu) Status: New = Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/962270 Title:

[Bug 962270] Re: /usr/sbin/lightdm-session: 34: [: Linux: unexpected operator

2012-12-06 Thread ZachG
I'm also running into this issue on two of my machines. Both are Asus X53U laptops running almost 100% stock versions of Ubuntu 12.04. I've installed nothing but chrome and gnome-panel on the machines. This manifests as users not being able to login using lightdm to the machines. I see an

Re: [Bug 962270] Re: /usr/sbin/lightdm-session: 34: [: Linux: unexpected operator

2012-07-06 Thread Barry Warsaw
On Jul 03, 2012, at 11:10 AM, Philippe Poilbarbe wrote: /usr/sbin/lightdm-session is a script executed with /bin/sh (see shebang line #!/bin/sh). It sources $HOME/.profile (and some others), not $HOME/.bash_profile. This does make it rather impossible to set up the environment both for the

[Bug 962270] Re: /usr/sbin/lightdm-session: 34: [: Linux: unexpected operator

2012-07-03 Thread Philippe Poilbarbe
/usr/sbin/lightdm-session is a script executed with /bin/sh (see shebang line #!/bin/sh). It sources $HOME/.profile (and some others), not $HOME/.bash_profile. So things specific to bash and not in sh are not recognized, for example: if [[ $x == yes || $y != no ]] then fi must be written: if [

[Bug 962270] Re: /usr/sbin/lightdm-session: 34: [: Linux: unexpected operator

2012-06-19 Thread Barry Warsaw
My guess is that the Line 34 is related to my .bash_profile, which has this on line 34: if [ `uname -s` == Darwin ] then # On MacOS X, the $PATH is set in .MacOSX/environment.plist export PATH=$PATH:/opt/local/bin # Path to emacsclient. export

Re: [Bug 962270] Re: /usr/sbin/lightdm-session: 34: [: Linux: unexpected operator

2012-05-31 Thread Barry Warsaw
On May 31, 2012, at 03:25 AM, hamish wrote: your line numbers are off by +3 (going from 53: /home/barry/.bash_profile: source: not found), but still no a == b bashisms or unquoted enviro variables that I can see... which version is this? I'm still seeing this in quantal. From the top of my

[Bug 962270] Re: /usr/sbin/lightdm-session: 34: [: Linux: unexpected operator

2012-05-30 Thread hamish
your line numbers are off by +3 (going from 53: /home/barry/.bash_profile: source: not found), but still no a == b bashisms or unquoted enviro variables that I can see... which version is this? Hamish -- You received this bug notification because you are a member of Ubuntu Bugs, which is

[Bug 962270] Re: /usr/sbin/lightdm-session: 34: [: Linux: unexpected operator

2012-03-29 Thread Sebastien Bacher
Thank you for your bug report, could you attach your /usr/sbin/lightdm- session to the bug? ** Changed in: lightdm (Ubuntu) Status: New = Incomplete ** Changed in: lightdm (Ubuntu) Importance: Undecided = Low -- You received this bug notification because you are a member of Ubuntu

[Bug 962270] Re: /usr/sbin/lightdm-session: 34: [: Linux: unexpected operator

2012-03-29 Thread Barry Warsaw
** Attachment added: lightdm-session https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/962270/+attachment/2961179/+files/lightdm-session ** Changed in: lightdm (Ubuntu) Status: Incomplete = New -- You received this bug notification because you are a member of Ubuntu Bugs, which

[Bug 962270] Re: /usr/sbin/lightdm-session: 34: [: Linux: unexpected operator

2012-03-29 Thread Sebastien Bacher
weird, that doesn't really make sense to me, l34 is XKB_IN_USE=yes, how can that hit the error in the summary? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/962270 Title: /usr/sbin/lightdm-session:

Re: [Bug 962270] Re: /usr/sbin/lightdm-session: 34: [: Linux: unexpected operator

2012-03-29 Thread Barry Warsaw
On Mar 29, 2012, at 07:02 PM, Sebastien Bacher wrote: weird, that doesn't really make sense to me, l34 is XKB_IN_USE=yes, how can that hit the error in the summary? Exactly! :) I can't explain it either. -Barry -- You received this bug notification because you are a member of Ubuntu Bugs,