<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 28 March 2013 17:29, Joseph Rushton Wakeling <span dir="ltr"><<a href="mailto:joseph.wakeling@webdrake.net" target="_blank">joseph.wakeling@webdrake.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 03/28/2013 06:06 PM, Iain Buclaw wrote:<br>
> $ echo $GNOME_DESKTOP_SESSION_ID<br>
> GNOME_DESKTOP_SESSION_ID=this-is-deprecated<br>
<br>
Yup, same on my system (actually it just prints this-is-deprecated).<br>
<div class="im"><br>
> $ which gnome-open<br>
> /usr/bin/gnome-open<br>
><br>
> Guess the detection method is deprecated, but the open command still exists...<br>
<br>
</div>Not on my system -- there's no /usr/bin/gnome-open and calling which gnome-open<br>
results in no output. (I'm using Ubuntu 13.04 as said before.)<br>
<br>
</blockquote></div><br></div><div class="gmail_extra">Well, you could follow the other methods of determining desktop and cycle through the typical linux commands found:<br><br>eg:<br>----<br> if ($^O =~ m/MSWin32/i) {<br>
@cmd = qw(cmd /c start);<br> } elsif ($^O =~ m/darwin/i &&<br> -x '/usr/bin/open') { # MacOS X vs. just Darwin<br> @cmd = 'open';<br> } elsif (-x '/usr/bin/kfmclient') {<br>
@cmd = qw(kfmclient exec);<br> } elsif (-x '/usr/bin/gnome-open') {<br> @cmd = 'gnome-open';<br> } elsif (-x '/usr/bin/gvfs-open) {<br> @cmd = 'gvfs-open';<br> } elsif (-x '/usr/bin/xdg-open') {<br>
@cmd = 'xdg-open';<br> } else {<br> errorExit "Sorry, I do not know how to start your browser.\nManual URL: $url"<br> }<br></div><div class="gmail_extra">----<br><br><br></div><div class="gmail_extra">
Regards<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">-- <br>Iain Buclaw<br><br>*(p < e ? p++ : p) = (c & 0x0f) + '0';
</div></div>