cannot launch some applications from within XFCE

nusret nbalci_l at yahoo.com
Wed May 31 00:55:27 CEST 2006



--- Andrew Conkling <andrew.conkling at gmail.com> wrote:

> On 5/30/06, nusret <nbalci_l at yahoo.com> wrote:
> >
> >
> > --- Alexander Toresson
> <alexander.toresson at gmail.com>
> > wrote:
> >
> > > On 5/30/06, Andrew Conkling
> > > <andrew.conkling at gmail.com> wrote:
> > > > On 5/30/06, Alexander Toresson
> > > <alexander.toresson at gmail.com> wrote:
> > > > > On 5/30/06, nusret <nbalci_l at yahoo.com>
> wrote:
> > > > > > I recently built the FOX C++ library
> simply to
> > > use
> > > > > > their Adie text editor, on Xubuntu Dapper
> with
> > > XFCE
> > > > > > 4.4.
> > > > > > When I install the built shared library
> > > *really
> > > > > > locally* (I mean, if I don't invoke
> ldconfig,
> > > but just
> > > > > > set the LD_LIBRARY_PATH in my .bashrc
> login
> > > script), I
> > > > > > observe the following issue:
> > > > > > When I type
> > > > > > >>adie
> > > > > > from the console, the program starts. But,
> > > > > > double-clicking in the filemanger fails to
> > > execute the
> > > > > > file.
> > > > > > If I globally install the shared library
> by
> > > modifying
> > > > > > /etc/ld.so.conf and then invoke ldconfig
> as
> > > root,
> > > > > > filemanager successfully executes "adie"
> (the
> > > text
> > > > > > editor aforementioned).
> > > > > >
> > > > > > Any idea why this happens?
> > > > > > Thank you.
> > > > > > N.
> > > > > >
> > > > >
> > > > > .bashrc is afaik ignored for X programs.
> >
> > Is there any other mechanism in place by XFCE to
> > achieve the same? Idea is to localize a user
> specific
> > environment and contain any software libraries
> > installed by the user and at the same time not to
> > sacrifice the convenience of the graphical user
> > interface.
> >
> > N.
> >
> > > > Just off the top of my head, would "open in
> > > terminal" for a launcher
> > > > make a difference in this case?
> > >
> > > I'm not sure. It depends on whether or not a
> > > non-login instance of
> > > bash is opened.
> > >
> > > Regards, Alexander Toresson
> >
> >
> > I understand this is a different question than
> mine. I
> > personally don't see any advantage to using the
> > "launcher". And there is no option like run in
> > terminal for file properties that manages
> > 'double-click and open' that I can see.
> 
> It's tangential at worst, but still relevant.  I
> think you could set
> it in, instead of .bashrc, .bash_profile and it'd be
> run when you
> first log in.  Then you'd be able to run it
> anywhere.  That's just a
> hunch, but I've done similar things elsewhere,
> wanting to set
> something for the entire session, and others just
> for the specific
> instance.

As I said, I am not an experienced user. I don't know
really what the difference is between all these
scripts are.
For example, first I tried to add a directory to my
PATH variable via .bash_profile, it didn't work! I
added it to my .profile file (I obtained one simply by
renaming .bash_profile :)) and voila, it worked! 
However, later I noticed that PATH variable does not
work for shared libraries (it used to in windows :))
and with some research and trial - error + some help
from Ubuntu forum denizens, I added this
LD_LIBRARY_PATH to .bashrc, because this time .profile
didn't work :/. But it didn't work for XFCE, sigh!
BUT, following your suggestion, I'll try .xinitrc now:
if it works, many thanks for the tip! If it doesn't,
we'll see why.




> (In fact, at one point I was so fed up with the
> confusion of it all
> that I simply had .bashrc call .bash_profile. ;)
> 
> For a dirty hack (or for something you want to run
> only in Xfce), you
> could look at setting it in ~/.config/xfce4/xinitrc
> (IIRC).  I've done
> this also, when I wanted Xfce to do something that I
> didn't want done
> elsewhere.

If this works as it sounds, looks pretty cool.

> Hope this helps,
> Andrew
> _______________________________________________
> Xfce mailing list
> Xfce at xfce.org
> http://foo-projects.org/mailman/listinfo/xfce
> http://www.xfce.org
> 

Regards,
N.

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the Xfce mailing list