public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Dr Rainer Woitok <rainer.woitok@gmail.com>
To: cygwin@cygwin.com
Subject: Problems with Qt5's QDesktopServices::openUrl()
Date: Sat, 05 Mar 2016 15:03:00 -0000	[thread overview]
Message-ID: <22234.62749.594000.522578@woitok.gmail.com> (raw)

Cygwinners,

currently I have two applications  which I compiled myself under Cygwin:
GPSBabel and QMapShack.   Both use Qt5, both provide online help via the
browser,  and both fail doing so  in my environment.   The version of my
various Qt5 packages is 5.5.1-1.

Looking at the source code of GPSBabel and QMapShack I can see that both
are using  QDesktopServices::openUrl()  to start the browser and to dis-
play the URL provided.  The message on standard error is in both cases

Launch failed (/C/Program Files/Mozilla Firefox/firefox http://www.gpsbabel.org/htmldoc-1.5.3/index.html)

except that QMapShack, of course, uses a different URL.

I placed a short script named "firefox"  in my personal "~/bin/" direct-
ory (which is the  first in environment variable "PATH")  containing the
three lines

   #! /bin/ksh
   "/C/Program Files/Mozilla Firefox/firefox" "$@"
   echo Firefox via script.

which caused  QDesktopServices::openUrl() to succeed.   I then created a
directory named "~/blank bin/",  prefixed my "PATH" environment variable
with it, moved the "firefox" script from "~/bin/" to "~/blank bin/", and
then QDesktopServices::openUrl()  failed  again,  while a direct call of
"firefox cygwin.com"  from the command line  correctly called  my script
and opened the web page.

So I assume QDesktopServices::openUrl()  at least under Cygwin is having
a problem with  blanks in  path names  and maybe  also with  the missing
".exe" extension (see the "Launch failed" error message).

Does anybody have an idea what to do next or whom to contact?

Sincerely,
  Rainer

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

             reply	other threads:[~2016-03-05 15:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-05 15:03 Dr Rainer Woitok [this message]
2016-03-10  5:54 ` Yaakov Selkowitz
2016-03-10 15:30   ` Dr Rainer Woitok
2016-03-10 22:30     ` Yaakov Selkowitz
2016-03-11 14:39       ` Dr Rainer Woitok

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=22234.62749.594000.522578@woitok.gmail.com \
    --to=rainer.woitok@gmail.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).