| |
- get_desktop()
- Returns the location of the current user's desktop directory
by reading the environment variable "HOME", and assuming that there
is a "HOME/Desktop" directory
- main()
- make_apple_launcher(desktop_dir)
- Makes a launcher application for OS X (tested on 10.5.8) of the format
biolegato.app. The launcher is just a wrapper for an apple script
that calls the system biolegato, and should use system paths.
The this method copies a template launcher called "biolegato.app"
to the desktop that is assumed to be in the current working directory
in adirectory called "osx_launcher", if this changes then this method
will need to be updated.
Once the launcher is copied, all the contents of the BIRCH directory
specified by the environment variable $BIRCH will be symbolically
linked into the applications resource directory under:
~/biolegato.app/Contents/Resources"
@desktop_dir: the location of the user's desktop directory,
where the launcher will be placed
- make_gnome_launcher(desktop_dir)
- Creates a launcher of the form biolegato.desktop for use on
linux desktops such as GNOME (v2+) and KDE (v3.5+). May also work
on other desktops such as qt, etc, but not yet tested
@desktop_dir: the location of the user's desktop directory,
where the launcher will be placed
- make_win_launcher()
- write_launcher(file_name, launcher_str)
- Writes the contents of launcher_str to a file specified by
file_name, and makes that file executable
@file_name: the fully qualified name (including path) of the file to write.
@launcher_str: the contents to write to the file
|