Results 1 to 3 of 3

Thread: Set environmental variable before logging.

  1. #1
    Join Date
    Jun 2010
    Beans
    8

    Set environmental variable before logging.

    Hello,

    I have a custom session, that is built with shared libs from
    Code:
    /opt/local/libs
    . It works fine as long as there is share dlibrary location in
    Code:
    LD_LIBRARY_PATH
    set. In my "
    Code:
    /etc/gdm3/PreSession/Default
    " I added: '
    Code:
    export LD_LIBRARY_PATH="/opt/local/lib/:$LD_LIBRARY_PATH
    "', but still this session doesn't run and closes with error:

    Code:
    Sep 12 10:19:05 AMDC3695 /usr/lib/gdm3/gdm-x-session[3796]: awesome:  error while loading shared libraries: libxcb-errors.so.0: cannot open  shared object file: No such file or directory
    so it looks like LD_LIBRARY_PATH is not visible during running na gdm-x-session... it's not set by PreSession/Default script...

    How can I set environmental variable during logging?

  2. #2
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Set environmental variable before logging.

    /etc/ld.so.conf.d/ has examples you can follow.

  3. #3
    Join Date
    Oct 2005
    Location
    Lab, Slovakia
    Beans
    10,312

    Re: Set environmental variable before logging.

    If all else fails, put the export statements in rc.local

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •