www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2771] New: browse() fails if Safari is renamed or moved.

reply d-bugmail puremagic.com writes:
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]


-- 
Mar 29 2009
next sibling parent d-bugmail puremagic.com writes:
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]


-- 
Mar 29 2009
prev sibling parent d-bugmail puremagic.com writes:
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]


-- 
Mar 29 2009