Add new session in Dtlogin for testing special library

Pradhap had posted an entry about adding new session in dtlogin. And SunYong had posted some notes about adding new session in dtlogin. I had read these two blogs and added my new session in dtlogin. 

Now I need test xorg which was compiled by myself. First of all I had compiled, and install it (by default it was installed in /usr/local/lib). Than I create a new X session in which all X application use my xorg The way to create these special  X session  is similar with the way of adding a new session except for a little difference.:

As you seen in Pradhap’blogs, for add new session you need add these 3 files:

1) /usr/dt/config/C/Xresources.d/Xresources.< window_manager >
2) /usr/dt/config/Xsession.< window_manager >
3) /usr/dt/config/Xinitrc.< window_manager >

The difference is following:

  • In /usr/dt/config/C/Xresources.d/Xresources.< window_manager >, do NOT change Dtlogin*altDtKey, keep it as /usr/bin/gnome-session if you want to add a new gnome session which is just for load different library.
  • In /usr/dt/config/Xinitrc.< window_manager >, add and export LD_PATH_LIBRARY for the path which you want to use for loading library. for exmple:

export LD_LIBRARY_PATH=/usr/local/lib

 You still need to be careful about the comment which gave by SunYong



3 thoughts on “Add new session in Dtlogin for testing special library

  1. This is one of the method to test the libraries. If one needs to test new library make sure that its PATH is export’ed with LD_LIBRARY_PATH in Xinitrc, and then start the desktop. After starting the desktop, to check if it picks up the new libraries “pldd <PID>” .

  2. Good suggestion!Thank you!
    It means I do not have to create a new session, because if create new session, we have to create new resource file for every) locale,it’s real hard way.
    But I am not sure whether this method safe enough. I think create a new session maybe more safe. how do you think about ?
    Any thanks again.:)

  3. i don’t think so!
    You tell us where you want to search, what you want to get, and how you want it formatted. We do all the work and send the results directly to you. The database format could be Excel, CSV, Access, MSSQL, and MySQL.
    For more information, please visit our website:


Fill in your details below or click an icon to log in: 徽标

You are commenting using your account. Log Out /  更改 )

Google+ photo

You are commenting using your Google+ account. Log Out /  更改 )

Twitter picture

You are commenting using your Twitter account. Log Out /  更改 )

Facebook photo

You are commenting using your Facebook account. Log Out /  更改 )


Connecting to %s