On 2016-09-02 11:17, Dave Howorth wrote:
On 2016-09-02 07:40, Dave Howorth wrote:
On Fri, 02 Sep 2016 08:06:40 +0300 auxsvr
wrote: On Thursday, 1 September 2016 22:24:49 EEST Dave Howorth wrote:
xdg-open "http://www.example.com/search.cgi?fred=wilma&barney=betty" works here. Perhaps you didn't quote the string?
I used single quotes but I don't think that accounts for my problem. Are you running Leap and LXDE?
I'm using Leap and KDE. What is the result of echo "http://www.example.com/search.cgi?fred=wilma&barney=betty" ?
$ echo "http://www.example.com/search.cgi?fred=wilma&barney=betty" http://www.example.com/search.cgi?fred=wilma&barney=betty
Hmm, it seems this problem may be specific to LXDE then. It also occurs on an Ubuntu 12.04 LTS system using LXDE.
xdg-open is a shell script. The backslashes are inserted at line 636 in the function search_desktop_file(). The decision to do so is based on information from /usr/share/applications/firefox.desktop, which on line 153 has Exec=firefox %u (the firefox.desktop is from the Ubuntu system, I can't check my Leap system until this evening but I suppose it must be the same).
That %u is what causes the backslashes to be inserted, but I've no idea yet why, or why that instruction is there, or what the desktop file is there for etc etc. If anybody understands how to debug this stuff, it would be very useful.
Need to qualify some more ... It only occurs on the Ubuntu system if I use the xdg-open script from the LEAP system. The xdg-open script on the Ubuntu system doesn't cause the problem. The scripts on the two machines are considerably different, but worryingly the header and copyright information on both is identical. It looks like somebody has edited xdg-open on openSUSE without updating the copyright info. How do I find out where that script came from? The version number reported by the Ubuntu script is 1.0.2, whilst that reported by openSUSE is 1.1.0 rc3. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org