[Portland-bugs] [Bug 38047] xdg-open seg fault when using application default set via xdg-mime

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Jul 30 08:06:05 PDT 2011


https://bugs.freedesktop.org/show_bug.cgi?id=38047

jw.hendy at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|DUPLICATE                   |FIXED

--- Comment #3 from jw.hendy at gmail.com 2011-07-30 08:06:04 PDT ---
(In reply to comment #2)
> This was fixed along with bug #32487
> 
> *** This bug has been marked as a duplicate of bug 32487 ***

@Rex Dieter:

That "duplicate" was fixed with a commit in Dec 2010 -- I find it odd that this
would be a duplicate since it's occurring 7 month later. This is certainly not
fixed in all cases for me. I have also verified that my version contains the
fix from this Dec 2010 bug:

line 420 in /usr/bin/xdg-open
,---
| local file="$x/applications/$default"
`---

some other pertinent information/settings verification:
,---
| $ xdg-mime --version
| xdg-mime 1.0.2
|
| $ xdg-mime query default application/pdf
| evince.desktop
| 
| $ evince --version
| GNOME Document Viewer 2.32.0
`---

Steps:
1) google "test pdf"
2) download first hit: www.education.gov.yk.ca/pdf/pdf-test.pdf
3) open from browser
4) opens in evince
5) quit evince
6) firefox opens up asking me what I want to do with it
7) replicate from command line:

,---
| $ xdg-open pdf-test.pdf 
| /usr/bin/xdg-open: line 419:  6617 Segmentation fault \
|    $command_exec "$1"
`---

Fix:
1) edit /usr/bin/xdg-open
2) edit line 425 from:

,---
| $command_exec "$1"
`---

to:

,---
| eval `"$command_exec" "$1"`
`---

I'm open to other suggestions... but just want to definitively state that this
has not been fixed for me. I'm open to other suggestions regarding settings on
my system or WM/DE or something else that might be doing this.

For potential assistance:

,---
| $ uname -a
| Linux Macrophage 2.6.39-ARCH #1 SMP PREEMPT Sat Jul 9 14:57:41
| CEST 2011 x86_64 Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz 
| GenuineIntel GNU/Linux
`---

Please ask for any other information.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Portland-bugs mailing list