Yes, running xdg-open straight from cli works fine. I think in Ubuntu 11.04 version there are some bug fixes related to chroot support.<br>I guess this is Issue is fixed with that. <br><br><a href="https://wiki.ubuntu.com/NattyNarwhal/TechnicalOverviewUpstart">https://wiki.ubuntu.com/NattyNarwhal/TechnicalOverviewUpstart</a><br>
<br>The problem here daemon is launched with initctl script and then it tries to launch the default browser using xdg-open command in <b>user mode</b>. In this scenario it fails always and this is seen only in ubuntu 10.04 and 10.10 version. But working fine in ubuntu 11.04 version. <br>
<br>Is there anyway so that I can have patch for this fix for these versions?<br><br><br><div class="gmail_quote">On Fri, Jan 6, 2012 at 6:55 PM, Evan Huus <span dir="ltr"><<a href="mailto:eapache@gmail.com">eapache@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="#FFFFFF"><div>I'm not aware of any bugs in those versions that would prevent the job from starting. Does running the xdg-open command straight from the cli work as expected?<br>
<br>Sent from my iPod</div><div><div class="h5">
<div><br>On 2012-01-06, at 5:10 AM, "G.Venugopal Rao" <<a href="mailto:venugopal.raog@gmail.com" target="_blank">venugopal.raog@gmail.com</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div>Hi Evan,
<br>
<br>
Thanks for reply. I am able to get it working now with this. But one more Issue I am facing
<br>
Normally from my application I have to launch the default web browser in user mode. So I am launching it by running the command
<br>
** sudo -u <username> xdg-open <Website address> <br>
<br>
When I start my daemon with "sudo initctl start <daemon>" The 
above command is working fine in ubuntu 11.04 but it is always fails in 
ubuntu 10.04, 10.10
<br>
versions. But I have to get this working for ubuntu 10.04, 10.10 
versions also. I am not sure why this is failing only in this specific 
versions.
<br>
<br>
Is there is any bug fix included in 11.04 for this Issue? Is there any 
workarround to get it working on older ubuntu version also (10.04, 
10.10)?
<br>
<br>
Please give me some pointers actually I am blocked with this isssue.<br>
<br>
Regards<br>
Venugopal<br><br><div class="gmail_quote">On Tue, Jan 3, 2012 at 1:30 PM, Evan Huus <span dir="ltr"><<a href="mailto:eapache@gmail.com" target="_blank">eapache@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div>On Tue, Jan 3, 2012 at 1:30 PM, G.Venugopal Rao<br>
<<a href="mailto:venugopal.raog@gmail.com" target="_blank">venugopal.raog@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> I am newbie to upstart script. I want to write an upstart script which<br>
> launches my daemon with sudo permission.<br>
> Can someone tell me how to do this?<br>
<br>
</div>I believe upstart runs all jobs with root permissions by default. You<br>
only have to do extra work if you want your process to be running as<br>
something *other* than root.<br>
<br>
<a href="http://upstart.ubuntu.com/cookbook/#changing-user" target="_blank">http://upstart.ubuntu.com/cookbook/#changing-user</a><br>
<span><font color="#888888"><br>
Evan<br>
</font></span></blockquote></div><br>
</div></blockquote></div></div></div>
</blockquote></div><br>