LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 11-30-2009, 05:38 AM   #1
anurag4u
LQ Newbie
 
Registered: Nov 2009
Location: India
Posts: 20

Rep: Reputation: 0
Question CDE Start script...


All,

I need to call one of my binaries as soon as I login in CDE (Common Desktop Environment) in Solaris 10.

I tried few places like .dtprofile, Xsession files etc..but I couldn't get my binary to execute.

Can anybody provide me a script, file or any other where I can call my binary.


Regards,
Anurag
 
Old 11-30-2009, 06:39 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
.dtprofile is the correct place if you are really using CDE (and not JDS/Gnome).
 
Old 11-30-2009, 07:13 AM   #3
anurag4u
LQ Newbie
 
Registered: Nov 2009
Location: India
Posts: 20

Original Poster
Rep: Reputation: 0
Quote:
.dtprofile is the correct place if you are really using CDE (and not JDS/Gnome).
it gives error
libxshare.so: open failed: no such file or directory.

Actually, my application uses Xlib calls and I guess all libraries are not loaded at the point of calling my binary.

Is there any other place where I can call my binary?
 
Old 11-30-2009, 07:24 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
What is that libxshare library ? It isn't part of Solaris.
 
Old 12-01-2009, 03:20 AM   #5
anurag4u
LQ Newbie
 
Registered: Nov 2009
Location: India
Posts: 20

Original Poster
Rep: Reputation: 0
Quote:
What is that libxshare library ? It isn't part of Solaris.
it seems to be one of my library which my binaries uses.
 
Old 12-01-2009, 03:38 AM   #6
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Then you binary is incorrectly built. It should be able to find its own dynamically linked libraries itself. You should have used the "-R path" linker option. As a workaround, you can use the LD_LIBRARY_PATH variable.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Are there any linux distros with cde, or any way to install cde? woms14 Linux - General 5 01-15-2010 09:08 PM
CDE graphical-login/cde-login in maintenance state czezz Solaris / OpenSolaris 1 09-30-2009 09:20 AM
how to start CDE programing a.toraby Programming 14 11-13-2007 03:34 AM
Cant start X-Window (CDE) after instalation SOLARIS 10 SPARC czezz Solaris / OpenSolaris 2 07-02-2007 01:35 AM
How to start CDE for non root user on Solaris 10 kiranherekar Solaris / OpenSolaris 2 01-18-2006 07:52 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 07:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration