[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [E-devel] New patch for entranced and entrance
On Sun, 27 Aug 2006 23:49:40 +0100
Essien Ita Essien <firstname.lastname@example.org> wrote:
Indeed. But it seems that just passing the environ pointer to an execve() call is not sufficient. What bash -l does is invoke /etc/profile ~/.bash_profile etc.
So I need a way to parse those files (at least from a command line).
The problems comes from the fact that my torture shell of the day (dash) does not implement a '-l' option.
While I can easily run any other shell besides dash (and right now I run bash, for the time being), doing so does not hide the problem. It may be possible that other shells besides dash do not implement the -l option either.
But for now, just applying the part of the patch that reffers to src/daemon/entranced_display.c means Entrance will work for shells that don't do SIGUSR1 but _do_ implement a -l option. So this may actually do some good (not sure though).
> Eugen Minciu wrote:
> > On Sun, 27 Aug 2006 22:30:58 +0300
> > Eugen Minciu <email@example.com> wrote:
> > Sorry, it seems that if I use this I get some issues within e. If I try to start an application from the run command thingie, it will tell me that the application failed to start.
> > I'll try to see what causes this. If anyone would be willing to investigate and/or give me any clues it would be appreciated.
> I'm not sure... but can you check that your environment variables are
> intact? It seems you'll need to pass the environment with the exec call
> so entrance can also pass that to e when it spawns e.
> Good job tackling that tho... appreciated :)
> >> Here's a new patch for entranced and entrance.
> >> This time I did what the comment suggested in both places. I used strtok and parsed directly into a char ** which then gets run by execv/execvp.
> >> If my code strikes you as ugly (I'm not sure if it should) be sure to tell me what I did wrong and I'll try to fix it some more.
> >> BTW, this diff is made from e17/apps/entrance. I'm sorry, is this what you meant or should I have made it dirrectly from e17/ ?
> >> Eugen.
> > -------------------------------------------------------------------------
> > Using Tomcat but need to do more? Need to support web services, security?
> > Get stuff done quickly with pre-integrated technology to make your job easier
> > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > _______________________________________________
> > enlightenment-devel mailing list
> > firstname.lastname@example.org
> > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel