X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:mime-version:content-type :content-transfer-encoding:message-id:date:to:subject; q=dns; s= default; b=WiSCM+RCxcYDVOlzXgMhYNvUnMTNO6niWia4zISGrMciI0hwCsOd8 u/Zo+1vdTaKZRku28+A1SlT5MBzcmdU/Puy17NbAYx8ie4T0v22TDszEF/VB2gz2 uSAgvKepIPsHgq9FqrpqNWYyLRa6qI6Zn8ic2foxt+6bsZJY6baSAU= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:mime-version:content-type :content-transfer-encoding:message-id:date:to:subject; s= default; bh=VC18OtayeMTc5T9BsCI/oCbfYs4=; b=cK16pnor4nwOnmtJIcxz o4x0Ghw+jffnLmS+zl7CCLizFLl7XBqa2Nsemz7OLc+QQtG8+bNgP+mUWhWmIyFR 6nLB5xcqJHXWI8AnuD0+hErqeB4iZ/pIh+rAcXJwv5Qc9YSAj3rAEouF2G4jA/MD 5RUzPCKNIM093lA8QE1HqV4= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,HK_NAME_FM_DR,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 spammy=Firefox, blanks, Launch, whom X-HELO: mail-wm0-f53.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:mime-version:content-transfer-encoding :message-id:date:to:subject; bh=tvT+dhO/oKf7LENXE0qrpLf+AROd+ig/+Fi5lTOyqU0=; b=lFce7kWSNcyf/ckPnm6yz5UphdLAZX74l3iVZrXeqyFuQiT14vzIQGO9eNo6j7+YjP 1S7whmbWP8rpcEqqrDIWUoDS6Q9smuUW+n7sCnzo2FG07TOGY/enaXSsASWjolCIOvAc eu4bzAQzriPqSb/3x+CFdeE3Rz5L1v1QA70lfcSwoHlQLdi2REAgF/21lrmW6WyFVqc/ Mobu3IqjbkR3PrUklHCV4hA8IhlmfOdzVj8lDJmN6+brTb4GtOnoPcFGkpCR+BgAxo0g s8PMGoMvL8uCLKbsA8GDJwC9Ahu4XHT9LNs0pAHJO68xTiYbuJ1WH/CCCrd1RRzRgKPg nC8g== X-Gm-Message-State: AD7BkJLSLatn8/k8Db/7OmCFUGS2xGeGgQTzeCbk/AjfKVsz/VOv20KKLfv/LeQKNYQrqg== X-Received: by 10.28.182.136 with SMTP id g130mr4177951wmf.10.1457190184578; Sat, 05 Mar 2016 07:03:04 -0800 (PST) From: Dr Rainer Woitok X-Google-Original-From: Dr Rainer Woitok MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <22234.62749.594000.522578@woitok.gmail.com> Date: Sat, 5 Mar 2016 16:02:53 +0100 To: cygwin AT cygwin DOT com Subject: Problems with Qt5's QDesktopServices::openUrl() 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