Thread overview | ||||||
---|---|---|---|---|---|---|
|
March 30, 2009 [Issue 2771] New: browse() fails if Safari is renamed or moved. | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=2771 Summary: browse() fails if Safari is renamed or moved. Product: D Version: 2.026 Platform: Macintosh OS/Version: Mac OS X Status: NEW Severity: minor Priority: P4 Component: DMD AssignedTo: bugzilla@digitalmars.com ReportedBy: unknown@simplemachines.org For categorization purposes, users on Macs may rename or move Safari.app from /Applications - it can even be uninstalled, if the user prefers another browser. For example, I have multiple versions of Safari (and other browsers) on my test Mac, in /Applications/Browsers. The open command doesn't require an application argument. Also, the argument need not be a full path, it can be just a name (such as "Safari", rather than "/path/to/Bundle.app".) My suggestion would be to simply pass the path to open directly, and let it use the user's prefered browser. This seems to be the behavior on Windows and Linux. -[Unknown] -- |
March 30, 2009 [Issue 2771] browse() fails if Safari is renamed or moved. | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=2771 ------- Comment #1 from unknown@simplemachines.org 2009-03-29 21:57 ------- Created an attachment (id=302) --> (http://d.puremagic.com/issues/attachment.cgi?id=302&action=view) Omit the optional application argument to open. This patch does what I suggest. An alternative would be to use "Safari", which would work even if they moved the app somewhere else, but not if they renamed it (OS X keeps a cached lookup of bundle ids and names.) -[Unknown] -- |
March 30, 2009 [Issue 2771] browse() fails if Safari is renamed or moved. | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=2771 unknown@simplemachines.org changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #302 is|0 |1 obsolete| | ------- Comment #2 from unknown@simplemachines.org 2009-03-29 23:21 ------- Created an attachment (id=303) --> (http://d.puremagic.com/issues/attachment.cgi?id=303&action=view) Omit the optional application argument to open (corrected.) Arg, sorry, I need to set this up properly to make patches everywhere. -[Unknown] -- |
December 23, 2012 [Issue 2771] browse() fails if Safari is renamed or moved. | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=2771 Andrej Mitrovic <andrej.mitrovich@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |andrej.mitrovich@gmail.com Resolution| |FIXED --- Comment #3 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2012-12-23 10:49:25 PST --- It now uses either "BROWSER" environment variable or "x-www-browser". I think this is fixed now (I can't test though). -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation