[Bug 591714] New: xdg-open and no default browser in LXDE
http://bugzilla.novell.com/show_bug.cgi?id=591714 http://bugzilla.novell.com/show_bug.cgi?id=591714#c0 Summary: xdg-open and no default browser in LXDE Classification: openSUSE Product: openSUSE 11.2 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: X11 Applications AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: mail@lutz-thuns.de QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.2.2) Gecko/20100317 SUSE/3.6.2-1.2 Firefox/3.6.2 When trying to open URLs out XChat xdg-open says "no method available for opening..." Reproducible: Always Steps to Reproduce: 1. 2. 3. Actual Results: URL not opened in browser Expected Results: Default browser should be used to open URL -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=591714 http://bugzilla.novell.com/show_bug.cgi?id=591714#c1 andrea florio <andrea@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andrea@opensuse.org Component|X11 Applications |X11 Applications Version|Final |Factory Product|openSUSE 11.2 |openSUSE 11.3 Target Milestone|--- |Factory Summary|xdg-open and no default |xdg-open/xdg-email and no |browser in LXDE |default browser "generic" --- Comment #1 from andrea florio <andrea@opensuse.org> 2010-03-28 17:26:41 UTC --- changed title, the problem is not related to lxde itself -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=591714 http://bugzilla.novell.com/show_bug.cgi?id=591714#c2 --- Comment #2 from andrea florio <andrea@opensuse.org> 2010-03-28 17:46:08 UTC --- Created an attachment (id=351031) --> (http://bugzilla.novell.com/attachment.cgi?id=351031) export BROWSER variable where needed this patch fix the issue, the patched package (xdg-utils) is into X11:lxde please test and report if it works for you so i can submit the patch to X11:common:Factory where is Factory package is maintained -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=591714 http://bugzilla.novell.com/show_bug.cgi?id=591714#c3 --- Comment #3 from Lutz Thuns <mail@lutz-thuns.de> 2010-03-28 17:55:46 UTC --- New patched package solved that issue! -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=591714 http://bugzilla.novell.com/show_bug.cgi?id=591714#c4 Lee Matheson <lee_matheson@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lee_matheson@hotmail.com --- Comment #4 from Lee Matheson <lee_matheson@hotmail.com> 2010-03-28 18:42:09 UTC --- I reported this on the #opensuse-lxde irc chat using handle "alsa-kid". Later (after supper and household chores) when checking on irc chat, I received the notification of the fix, and installed xdg-utils from X11:lxde (updating from the M4 1.0.2-87.1 to the factor 1.0.2-175.1). This works for me now, and I recommend this bug report be closed. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=591714 http://bugzilla.novell.com/show_bug.cgi?id=591714#c5 Lubos Lunak <llunak@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |llunak@novell.com --- Comment #5 from Lubos Lunak <llunak@novell.com> 2010-03-30 11:21:48 UTC --- The patch is wrong. $BROWSER is variable that can be set by the user and cannot be just overriden like that. Moreover it's already set to that value near the end of xdg-open, so there's probably a bug somewhere. But this is not the fix. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=591714 http://bugzilla.novell.com/show_bug.cgi?id=591714#c6 andrea florio <andrea@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |llunak@novell.com --- Comment #6 from andrea florio <andrea@opensuse.org> 2010-03-30 12:23:23 UTC --- BROWSER is setted as i exported, already into the script, even if very "late" into the script... actually that variable looks not be "available" so the script fail to launch the browser... do you think that should be exported by DE instead? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=591714 http://bugzilla.novell.com/show_bug.cgi?id=591714#c7 Lubos Lunak <llunak@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|llunak@novell.com | --- Comment #7 from Lubos Lunak <llunak@novell.com> 2010-03-30 14:38:20 UTC --- I'm not sure I understand what you're saying. My point is that 'BROWSER=konqueror xdg-open http://kde.org' should open the URL in Konqueror, but if you explicitly set BROWSER in the script, that won't work. As the script itself already checks for empty BROWSER, you should just check why that check doesn't seem to work for you. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=591714 http://bugzilla.novell.com/show_bug.cgi?id=591714#c8 andrea florio <andrea@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |llunak@novell.com --- Comment #8 from andrea florio <andrea@opensuse.org> 2010-03-30 17:44:20 UTC --- (In reply to comment #7)
'BROWSER=konqueror xdg-open http://kde.org' should open the URL in Konqueror,
the point is, applications just call "xdg-open http://www.something.it" without exporting "BROWSER"... imho we should do then something like if BROWSER == ' ' BROWSER=abc:def:ghi in other words, if BROWSER is empty (not exported and not available), that export browser with default values do you agree on that? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=591714 http://bugzilla.novell.com/show_bug.cgi?id=591714#c9 Lubos Lunak <llunak@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|llunak@novell.com | --- Comment #9 from Lubos Lunak <llunak@novell.com> 2010-04-02 14:13:45 UTC --- (In reply to comment #8)
the point is, applications just call
"xdg-open http://www.something.it"
without exporting "BROWSER"...
The point is, it is the user possibly setting the variable.
imho we should do then something like
if BROWSER == ' ' BROWSER=abc:def:ghi
in other words, if BROWSER is empty (not exported and not available), that export browser with default values
See end of xdg-open. Possibly that code is misplaced. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=591714 http://bugzilla.novell.com/show_bug.cgi?id=591714#c10 andrea florio <andrea@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |llunak@novell.com --- Comment #10 from andrea florio <andrea@opensuse.org> 2010-04-02 14:44:52 UTC --- i think i found the real problem... actually this is the code... if [ x"$DE" = x"" ]; then # if BROWSER variable is not set, check some well known browsers instead if [ x"$BROWSER" = x"" ]; then BROWSER=firefox:mozilla:netscape fi DE=generic fi case "$DE" in kde) open_kde "$url" ;; gnome) open_gnome "$url" ;; xfce) open_xfce "$url" ;; lxde) open_generic "$url" ;; generic) open_generic "$url" ;; *) exit_failure_operation_impossible "no method available for opening '$url'" ;; esac so the problem is... "lxde" and "generic" are the $DE value.. that means
if [ x"$DE" = x"" ]; then
is FALSE, so the check for the browser will not be done... should we just move from if [ x"$DE" = x"" ]; then # if BROWSER variable is not set, check some well known browsers instead if [ x"$BROWSER" = x"" ]; then BROWSER=firefox:mozilla:netscape fi DE=generic fi to if [ x"$DE" = x"" ]; then DE=generic fi # if BROWSER variable is not set, check some well known browsers instead if [ x"$BROWSER" = x"" ]; then BROWSER=firefox:mozilla:netscape fi -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=591714 http://bugzilla.novell.com/show_bug.cgi?id=591714#c11 andrea florio <andrea@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #351031|0 |1 is obsolete| | --- Comment #11 from andrea florio <andrea@opensuse.org> 2010-04-02 15:05:43 UTC --- Created an attachment (id=352223) --> (http://bugzilla.novell.com/attachment.cgi?id=352223) proposed patch to fix the bug i can confirm it... attached patch fix the issue, and allow the use to set his own browser -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=591714 http://bugzilla.novell.com/show_bug.cgi?id=591714#c12 Lubos Lunak <llunak@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|llunak@novell.com | --- Comment #12 from Lubos Lunak <llunak@novell.com> 2010-04-08 15:09:32 UTC --- Looks ok to me. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=591714 http://bugzilla.novell.com/show_bug.cgi?id=591714#c13 --- Comment #13 from andrea florio <andrea@opensuse.org> 2010-04-08 21:55:34 UTC --- submitreq #37453 -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=591714 http://bugzilla.novell.com/show_bug.cgi?id=591714#c14 andrea florio <andrea@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #14 from andrea florio <andrea@opensuse.org> 2010-04-09 13:29:25 UTC --- request accepted , fixed package into X11:common:Factory repo. waiting to be sent into openSUSE:Factory. closed at FIXED -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=591714 http://bugzilla.novell.com/show_bug.cgi?id=591714#c15 --- Comment #15 from Bernhard Wiedemann <bwiedemann@suse.com> --- This is an autogenerated message for OBS integration: This bug (591714) was mentioned in https://build.opensuse.org/request/show/37559 Factory / xdg-utils -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com