Re: "Double-click apps"
Re: "Double-click apps"
- Subject: Re: "Double-click apps"
- From: Ernest Prabhakar <email@hidden>
- Date: Thu, 6 Nov 2003 08:41:20 -0800
On Nov 5, 2003, at 10:01 PM, email@hidden wrote:
http://www.apple.com/macosx/features/x11/ mentions this feature:
"Double-click apps Launch X11 applications directly in the Finder"
but there doesn't appear to be any documentation about it. Does anyone
know if this is this something more than what people have been doing
using AppleScript applets (I'm assuming yes based on the document
bundle references in Info.plist), and, if so, is there a provided
interface for doing this or is it simply a matter of creating bundles
by hand?
This is a feature of Launch Services in Panther. It works with any
UNIX binary. The process is:
a) When Finder is trying to associate an icon with a file, it checks if
(i) it has the execute bit set, plus (ii) it does not already have an
extension. If both are true, it tags it as a UNIX executable.
b) When you actually double-click the file, it sniffs the binary to see
if it links against X11. If so, it assigns the virtual extension
'.x11app'; otherwise, it assigns it as type '.command'.
c) Based on that extension (which you could also assign manually),
Launch Services searches for the appropriate application.
d) Apple's X11.app claims the .x11app extension, and thus it treats X11
binaries as one of its documents. Other X11 GUIs could also claim that
extension, and handle binaries similarly. You can change the default
application by using Get Info on a file with that explicit extension.
Hope this helps. I believe this is also explained in the UNIX Tech
Brief for Panther.
Yours truly,
-- Ernie P.
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
X11 for Mac OS X FAQ: http://developer.apple.com/qa/qa2001/qa1232.html
Report issues, request features, feedback: http://developer.apple.com/bugreporter
Do not post admin requests to the list. They will be ignored.