From: Erik Harrison <erikharrison@sl...> - 2003-11-23 01:25:46
I think file systems with extended attributes offer an interesting
solution to this, especially if they also implement multiple streams.
I've thought about implementing is as an AVFS plugin, but never got
around to it. Here is the idea -
You make an ordinary AppDir.
Package it as a tar or pax file.
Either with an extension (*.app) or with an xattr, mark the file as an appdir. Prefererably xattr
If the FS implements multiple streams, simply make the primary stream AppRun.
Voila! No complex symlinking structure then - simply drop, say rox the appdir in /usr/bin.
--- Peter Geer <geerp@...> wrote:
On Sat, 22 Nov 2003 02:05:05 +0100
Jonatan Liljedahl <than@...> wrote:
> As I understand it, the Rox philosophy is to package all applications
> in AppDirs, but what about shellcommands? And sometimes you want to
> start some roxapp (like Edit) from a shell. You can't symlink the
> AppRun to some PATH path, becouse then $(dirname $0) will be
> incorrect. I've heard something about patching the shell, but should
> that really be nessecary? Is there any other way to do it?
My focus is on repackaging existing application in AppDir
format, so I've dealt with this very problem. Seeing how Python
is the semi-official scripting language of ROX, my solution was to
determine the AppDir path with a small in-line Python script.
I've also been playing around with some command-line options and
checking the command name to run different programs in a
multi-executable package. My current problems are dealing with man
pages and passing relative paths to AppDirs that need the working
directory to be $APP_DIR (this problem is a product of the way I've
chosen to repackage most apps).
I have a more information on this topic on the "Wrappers and
Resources" page of my web site:
You may be particularly interested in the AppDir template on that page,
which contains my "standard" AppRun script that implements some of the
above mentioned features. I've been using it successfully in almost all
the programs in my AppDir repository.
I'm glad to see I'm not the only one who's been thinking about this.
Peter A. Geer
"If you can't beat them, arrange to have them beaten." -- George Carlin
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
rox-devel mailing list
Sluggy.Net: The Sluggy Freelance Community!