Re: adding X11 app to dock?
Re: adding X11 app to dock?
- Subject: Re: adding X11 app to dock?
- From: Steve Lidie <email@hidden>
- Date: Sat, 24 May 2003 15:05:43 -0400
On Saturday, May 24, 2003, at 01:17 PM, Christopher Molnar wrote:
Is there anyway to add an X11 app to Aqua's dock (like kmail instead
of apple
mail) and make launch both X11 (apple's version) and itself by just
using the
icon?
What I do is make a simple application (it's just a directory with a
specific structure and with specific files), which is in reality a
shell program that starts X11.app and then my X11 application. e.g.:
[lusol@cube0:/Volumes/Backup/Applications] find Get\ Token.app/
Get Token.app/
Get Token.app//.DS_Store
Get Token.app//Contents
Get Token.app//Contents/.DS_Store
Get Token.app//Contents/Info.plist
Get Token.app//Contents/MacOS
Get Token.app//Contents/MacOS/.DS_Store
Get Token.app//Contents/MacOS/GetToken
Get Token.app//Contents/MacOS/GetToken~
Get Token.app//Contents/PkgInfo
Get Token.app//Contents/Resources
Get Token.app//Contents/Resources/.DS_Store
Get Token.app//Contents/Resources/Defaults.plist
Get Token.app//Contents/Resources/gettoken.icns
Get Token.app//Contents/Resources/GetToken.pl
Get Token.app//Contents/version.plist
[lusol@cube0:/Volumes/Backup/Applications] more Get\
Token.app/Contents/MacOS/GetToken
#!/bin/bash
export LANG=
/usr/bin/open /Applications/X11.app
/usr/bin/open-X11 /usr/local/bin/perl /usr/local/bin/GetToken.pl
In this case, GetToken.pl is a Perl/Tk program that gets an AFS token
for a user. To the Finder, you have a "real" Mac OS X application that
can be placed on your dock.
Now, I know little about Mac OS X packaging, I just rummaged around
other apps and came up with this by hand, there may be a better way,
YMMV, etc.
HTH,
Steve
_______________________________________________
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.