[Portland-bugs] [Bug 38047] New: xdg-open seg fault when using application default set via xdg-mime
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Tue Jun 7 12:25:17 PDT 2011
https://bugs.freedesktop.org/show_bug.cgi?id=38047
Summary: xdg-open seg fault when using application default set
via xdg-mime
Product: Portland
Version: 1.1.0 rc1
Platform: x86-64 (AMD64)
OS/Version: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: xdg-utils
AssignedTo: portland-bugs at lists.freedesktop.org
ReportedBy: rwnobrega at gmail.com
I'm quoting from user "jwhendy" at
https://bbs.archlinux.org/viewtopic.php?id=119122
I'm posting this here because his fix worked for me.
>>
>> Hi,
>>
>> I use Chromium and have set xdg-mime to open .pdf files with Evince using:
>>
>> $ xdg-mime default evince.desktop application/pdf
>>
>> I can verify that it's set with:
>>
>> $ xdg-mime query default application/pdf
>> evince.desktop
>>
>> When I download a pdf in Chromium and open it, it opens in Evince, but when
>> closing Evince, it brings up Firefox as well. I thought this was solved by
>> setting defaults via xdg-mime. I only caught the real potential issue because
>> I used xdg-open to open a pdf directly. After I quit out of Evince, stderr
>> spits out the following at the command line:
>>
>> $ xdg-open test.pdf
>> /usr/bin/xdg-open: line 396: 19916 Segmentation fault $command_exec "$1"
>>
>> This is when Firefox pops open. Quitting firefox ends the xdg-open command.
>>
>> [...]
>>
>> Update: This works (line 402 in /usr/bin/xdg-open):
>>
>> ---( From )---
>>
>> $command_exec "$1"
>>
>> ---( To )---
>>
>> eval `"$command_exec" "$1"`
>>
--
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